SitePoint Sponsor
+ Post New Thread
Page 1 of 3171 1 2 3 4 5 11 51 101 501 1001 ... LastLast
Threads 1 to 40 of 126832

Forum: PHP

PHP has established itself as the Open Source programming language of choice for many developers. Need help with your program? Trying to fix a tricky parse error? Note: Now includes posts from the former PHP Application Design subforum.

  1. Global Thread Global: FREE - Talk WordPress With The Experts

    Welcome to the second in our series of 'Talk With The Experts' live forum workshops. Next up is WordPress with SitePoint developers Harley Alexander (front end and WordPress) and Bernard Peh (PHP and WordPress) along with assorted Advisors from here at the forums. The session will kick off at...

    Started by HAWK‎, Feb 21, 2012 19:14
    • Replies: 0
    • Views: 1,307
    Feb 21, 2012 19:14 Go to last post
  2. Global Thread Global: Looking For People To Interview For A SitePoint Book

    Jodie Moule (author of our upcoming UX book) is looking for some SitePoint community members to interview for her book. She is specifically interested in what it is that you want from a UX book. If anyone is interested in taking part, please PM me your name and email address and I'll hook it up.

    Started by HAWK‎, Feb 20, 2012 18:00
    • Replies: 0
    • Views: 372
    Feb 20, 2012 18:00 Go to last post
  3. Sticky Thread Important: PHP Basics.

    Welcome to the PHP Basics thread. This is the, well, the basics - a place to look up the most common new programmer questions that get fielded in the forum. Questions and comments welcomed, but keep in mind that it is requested that the moderators keep this thread more well pruned than most. ...

    Started by Michael Morris‎, Dec 3, 2010 10:27
    basics
    • Replies: 9
    • Views: 8,704
    Feb 21, 2012, 04:54 Go to last post
  4. Sticky Thread Important: Common PHP Problems

    Common PHP Problems A few problems crop up quite regularly among our forum users; In order to help speed things along, see if your problem is listed below before posting a thread on the forum. Please note that the causes listed are the most common causes, and are not the only causes for the...

    Started by StarLion‎, Jun 30, 2011 08:53
    • Replies: 0
    • Views: 3,751
    Jun 30, 2011, 08:53 Go to last post
  5. Post Sticky Thread Important: Installing PHP (5.3 currently) on Windows

    Installing PHP (5.3 currently) on Windows Contents Installing PHP Installing Apache HTTP Server Installing Internet Information Services There is certainly a lot of different way to installing PHP or configuring it under different servers or platforms, most seasoned developers will...

    Started by logic_earth‎, Oct 25, 2009 11:33
    • Replies: 14
    • Views: 36,239
    Sep 25, 2010, 23:20 Go to last post
  6. Sticky Thread Important: PHP and MySQL coding tips

    The great "PHP and MySQL coding tips" thread has been restructured. The posts from the old thread have been sorted into four categories and are quoted below, with a link to the original post. Not all posts have been quoted. Before you create a new tip, please make sure it's not already in here....

    Started by Helge‎, Feb 4, 2007 09:13
    • Replies: 15
    • Views: 76,692
    Sep 2, 2010, 05:08 Go to last post
  7. Sticky Thread Important: To hopefully clear up some MVC confusion

    Important: ironically as it is, this thread was meant to sort out some confusion, but it turns out that I was one of the people who was confused. I can see now that I have mixed up the PageController and FrontController patterns. What I posted initially as PageController classes in this example,...

    Started by Captain Proton‎, Jul 29, 2004 07:35
    5 Pages
    1 2 3 4 5
    • Replies: 119
    • Views: 123,453
    May 27, 2010, 23:26 Go to last post
  8. Sticky Thread Important: Help Wanted!

    If you are reading this you are the SitePoint member we're looking for. The SitePoint forums are currently working on improving the sticky threads. Much work has already been done towards this goal within the "Program Your Site" team. And we are acutely aware of some of their problems. But so...

    Started by Mittineague‎, Mar 24, 2010 19:09
    • Replies: 0
    • Views: 5,890
    Mar 24, 2010, 19:09 Go to last post
  9. Sticky Thread Important: Advanced PHP Resources

    Advanced PHP Resources Version 2.0.1 alpha (work in progress - HF - 11 Mar 2004) The following list of resources and pointers is intended to help PHP developers improve development technique. The focus is on more "theoretical" aspects of PHP rather than "Here's how to do X" examples. Contents...

    Started by HarryF‎, Oct 1, 2002 05:07
    • Replies: 14
    • Views: 162,406
    Oct 6, 2008, 03:43 Go to last post
  1. Code on retrieving image (Help)

    Hi there, I have written a code on retrieving image from the database. But I gt a error notice from my show_image.php file. Here's the code: <?php //connect to database $connection = mysql_connect("localhost", "root", "") or die('cant make connection : ' . mysql_error()); ...

    Started by Php Beginner‎, Yesterday 19:33
    php
    • Replies: 1
    • Views: 68
    Today, 01:07 Go to last post
  2. Symfony - General Thoughts

    Hello everyone, So, I'm starting on a new rather large project which needs to be capable of crazy fast performance (maybe not Google/Facebook crazy, but still pretty high spec). Normally Wordpress is my go-to CMS of choice (don't want to discuss that here =p), but it's not going to cut it for...

    Started by samanime‎, Yesterday 19:11
    • Replies: 11
    • Views: 140
    Today, 00:28 Go to last post
  3. Can't get form to both go to a different page and send an e-mail

    I've been using lynda.com tutorials to learn php/mysql in DW 5, along with some help from a friend. I've run into a problem I can't figure out and my friend is in a different time zone, so isn't available. The current coding for inserting the record into the db and redirecting the user to the...

    Started by Helen W Lee‎, Yesterday 19:25
    • Replies: 6
    • Views: 103
    Yesterday, 22:11 Go to last post
  4. CakePHP and 1and1.com

    Anyone try to install CakePHP on a 1and1.com server? Having some trouble, didn't know if anyone had some insight on this matter?

    Started by Bades‎, Yesterday 21:34
    • Replies: 0
    • Views: 58
    Yesterday, 21:34 Go to last post
  5. Best way to securely store retrievable password?

    So I've been tasked to add a feature to our company admin area where staff can store passwords they need for other sites. I know this is fraught with trouble, but maybe more secure than a series of post-it notes on desks! My first attempt was to use mcrypt to get an encoded string and...

    Started by hessodreamy‎, Feb 21, 2012 05:02
    • Replies: 6
    • Views: 157
    Yesterday, 20:32 Go to last post
  6. Security issues

    Hey everyone, I have some security issues, today i logged in my hosting account and i saw a file named xx.txt on my webroot, inside it there was 1 line saying hacked by xxx How is it possible? I have no file uploads on my website that allows file uploading to webroot, only to subfolders and...

    Started by ulthane‎, Yesterday 13:04
    • Replies: 4
    • Views: 136
    Yesterday, 19:43 Go to last post
  7. Getting Error in WP

    One of my friend getting the following error in Wordpress blog at trendztime.com: Warning: implode() : Invalid arguments passed in /home/urcric/public_html/trendztime.com/wp-content/themes/ZPRESS/functions/wpzoom-widgets.php on line 1450 Here are some lines from code: if ($type == 'tag')...

    Started by Kawish‎, Yesterday 12:11
    • Replies: 1
    • Views: 81
    Yesterday, 18:38 Go to last post
  8. Chained Select - third menu using values from 1st and 2nd menu

    Hi there, First time poster, long time lurker... I'm working on a page that queries my mysql database and does the following: Select a sports league from the first dropdown. Use that league to give the stadium name options to select from the second dropdown The problem is the third...

    Started by herpderperson‎, Feb 20, 2012 21:48
    • Replies: 1
    • Views: 108
    Yesterday, 18:23 Go to last post
  9. Category Select does not complete - On Click

    Hello Could someone help me solve the problem on the Sell and Wanted Ads pages. http://numberthree.netne.net/index.php On the Sell & Wanted Ads pages, you need to Select a Category. eg: Art - Modern the Category Select does not complete, no On Click,

    Started by RayWilk‎, Yesterday 05:57
    • Replies: 4
    • Views: 108
    Yesterday, 16:46 Go to last post
  10. need help with regular expression

    I want to extract parts of string that have a dollar sign followed by digits, and - either have a space or = in front of $ and - space or end of string after digits expression in the code below works fine except it doesn't extract $7. What do I need to change to get " $1 " "=$6 " " $7"

    Started by alexv55‎, Yesterday 13:06
    • Replies: 1
    • Views: 101
    Yesterday, 16:29 Go to last post
  11. Multiple tables, multiple id's

    Hi all, I am assuming this is possible but I have been searching and trying things all day with no luck. If I have 2 or more tables both with an id column and I want to select both of those id column's with an inner join and put them into an array, how would I do this? I am getting errors saying...

    Started by stephenTMS‎, Yesterday 14:39
    • Replies: 3
    • Views: 97
    Yesterday, 16:08 Go to last post
  12. Document Expired?

    When I hit the back button in my browser I get this... What is causing that?! (I am REALLY FREAKED OUT that I made a poor Design Decision and now all of my code is for not?!) :( Debbie

    Started by DoubleDee‎, Yesterday 13:09
    • Replies: 6
    • Views: 142
    Yesterday, 15:54 Go to last post
  13. Cookies and Sessions as a back up

    Hi, I'm trying to create a script that works with cookies and sessions, i'm not sure if this is possible. This is what i've got at the moment, but the session side of it doesn't seem to work. Basically I want the session to remember a chosen theme, should the user have cookies disabled. ...

    Started by bo5ton‎, Feb 16, 2012 19:36
    2 Pages
    1 2
    • Replies: 30
    • Views: 367
    Yesterday, 15:36 Go to last post
  14. Open All Links Within Div in New Window

    I've created a website with Joomla - newwebbsite.prosperaplace.com and I am using a module to display the upcoming events. The parameters of the module allow me to set if links target blank window, which i have it set to. This only applies to the title though, and when you click on the image it...

    Started by amberbam‎, Yesterday 14:19
    • Replies: 2
    • Views: 89
    Yesterday, 15:30 Go to last post
  15. Ranges revisited.

    So I have this range reduce call that was posted here on the forum function reduce_ranges($reduced, $value) { static $in_range, $previous; // Reset if ($in_range === NULL) { $in_range = FALSE; $previous = NULL; }

    Started by Michael Morris‎, Feb 20, 2012 07:17
    • Replies: 10
    • Views: 194
    Yesterday, 15:28 Go to last post
  16. preg_match to strip link from content

    Hi. I am using this bit of code to identify certain links within my content and swap them for another link. $re1='(\\)'; # Square Braces 1 $re2='.*'; # Non-greedy match on filler $re3='(\\)'; $articleContent .=preg_replace("/".$re1.$re2.$re3."/i", '<a...

    Started by chrisio‎, Yesterday 05:48
    • Replies: 4
    • Views: 117
    Yesterday, 14:35 Go to last post
  17. convert links to <a> tags code

    hey guys, i got a code that convert links entered through a textarea to a clickable link with page title as shown string like this: <a href="enteredURL" rel="nofollow">pageTitle</a> I wanna know if the code below looks all right to you? it works only for some links not all, and i dont know the...

    Started by ulthane‎, Yesterday 07:00
    • Replies: 4
    • Views: 121
    Yesterday, 12:34 Go to last post
  18. PHP Mailing list!

    I have created a simple php mailing script seeing a tutorial. But the problem is the script works but the email doesn't go. I got stuck with the mail host thingy. The guy uses his mailhost code like ini_set("SMTP", "mailhost.*******.co.uk"); So I got stuck with this, what should be my...

    Started by xem‎, Feb 21, 2012 20:14
    • Replies: 3
    • Views: 114
    Yesterday, 12:14 Go to last post
  19. Form loses data on re-submit

    I have a form where the user chooses an item from the dropdown(Term) which then displays data(Rate) from the database. The user should be able to choose different terms to get the results however when you hit submit it works the first two times and then loses the data the third time. Also, when you...

    Started by dragonfly7‎, Yesterday 09:34
    • Replies: 1
    • Views: 90
    Yesterday, 11:59 Go to last post
  20. Automate Script

    Hi, my site needs to carry out daily checks on user's accounts and then carry out an action depending on the result. It needs to check the following things on a daily basis: - check if a new member has updated their profile within 7 days (IF $create_timestamp is > than 7 days and $profile_update...

    Started by oo7ml‎, Yesterday 10:37
    • Replies: 3
    • Views: 83
    Yesterday, 11:43 Go to last post
  21. Using PHP to run different queries within one page depending on a variable value

    Hey guys I am creating a user account page where the user can access their account details from the users table, I want to have a few links on the account page that will allow them to do certain things with their information, such as view, change, edit password. So I was trying to make these...

    Started by deucalion0‎, Yesterday 04:13
    • Replies: 9
    • Views: 143
    Yesterday, 11:41 Go to last post
  22. Error on Contact Form submission

    I have a decent looking contact script on the go, but unfortunately it doesn't send messages, it just displays ERORR! message. However, the 'Invalid email address entered' error does work when you put nonsense into the email box. Running locally, so here code is below. Can anyone see why it's...

    Started by pcmagic‎, Yesterday 06:59
    • Replies: 2
    • Views: 103
    Yesterday, 10:41 Go to last post
  23. Should all Images be One Type?

    I am allowing Users to upload their Photos. GIF, JPEG, and PNG are valid formats, however - for security reasons - I am running everything through PHP's GD. Would it make sense to convert everything to ONE FORMAT? Is there any Security Benefit in doing so? Is there any Web Design...

    Started by DoubleDee‎, Feb 21, 2012 11:41
    2 Pages
    1 2
    • Replies: 33
    • Views: 354
    Yesterday, 10:36 Go to last post
  24. Unhappy I'm having problems executing a "do while loop" with two instances on one query.

    I'm having problems executing a "do while loop" with two instances on one query. Its running only one instance, my snippet is as follows; <?php do { ?> <table width="100%" border="1" cellspacing="0" bordercolor="#000000"> <!--DWLayoutTable--> <tr> ...

    Started by fatso84‎, Feb 16, 2012 02:10
    • Replies: 10
    • Views: 276
    Yesterday, 08:25 Go to last post
  25. Spam emails

    Hi.. I want to implement a program for identifying spam emails using an algorithm naive bayes in php.. im new to php..how to implement this??

    Started by danielbala‎, Feb 20, 2012 06:03
    • Replies: 2
    • Views: 129
    Yesterday, 08:20 Go to last post
  26. Create and Post ads to google

    Hi, I am building an Ad website and my client has come up with and unusual requirement, he wants: # An add should generate his website and the ad should publish to Google ads. # Site admin can monitor these ads that get published and can check the analysis behind each ad. #These ads will be...

    Started by kuldeepkaundal‎, Yesterday 02:56
    • Replies: 4
    • Views: 89
    Yesterday, 05:30 Go to last post
  27. cURL problems

    Hi all Im trying to transfer a local file on SiteA to SiteB using FTP under cURL .... but cant seem to get it working $filepath = 'http://www.siteA.com/export/PagesJaunes/PJ-feed.csv'; $fp = fopen($filepath, 'r'); //open as read a file $ch = curl_init();

    Started by Mandes‎, Yesterday 05:22
    • Replies: 0
    • Views: 86
    Yesterday, 05:22 Go to last post
  28. Using PHP upload, avoid the writing of a temporary file,or change the tmp folder?

    Hey guys, I am trying to write a script that will let me upload a file selected from a directory on my computer using PHP. I want to browse my PC and select a file which I can do, but when I select upload I get this error: PHP Warning: File upload error - unable to create a temporary file in...

    Started by deucalion0‎, Feb 20, 2012 15:12
    • Replies: 4
    • Views: 156
    Yesterday, 04:05 Go to last post
  29. echo strips away some tags

    foreach($array as $value) { echo '<div id="data"> <p>Some text</p> </div>'; } This code prints out the following (supposing that $array's length is 2):

    Started by D3V4‎, Feb 20, 2012 05:52
    • Replies: 12
    • Views: 209
    Yesterday, 03:29 Go to last post
  30. PHP regular expressions and replace help

    I've got a bunch of entries in a database like this <object><embed src="http://www.flashgamesnexus.com/gamefiles/gemcraft/gemcraft.swf" width="640" height="480"></object></center> I want to replace them all so it looks more like this:

    Started by Archbob‎, Feb 21, 2012 14:54
    • Replies: 2
    • Views: 109
    Yesterday, 03:16 Go to last post
  31. Php Puzzle - forthcoming dates

    Hi Currently I need to login into my website every month and update the date of the next event - the third saturday of every month. There must be a way for php to help me do this less often. I thought the smplest way would be for me to create an array of dates over the next 12 months: ie...

    Started by rooftop‎, Feb 20, 2012 03:43
    • Replies: 12
    • Views: 214
    Yesterday, 02:18 Go to last post
  32. New script uploaded, yet a couple of problems

    Hello, just uploaded a new script, yet a couple of problems, if you go to: http://numberthree.netne.net/login.php then Click on Stores at the top of the page and you will see one of the problems, your help appreciated :)

    Started by RayWilk‎, Feb 21, 2012 17:34
    • Replies: 10
    • Views: 156
    Yesterday, 02:15 Go to last post
  33. Form with variable number of fields

    I was thinking, what is the best way to manage a form with a variable number of fields? Suppose you have the fields "phone1", "phone2" and "phone3", how can I insert the data into a database, not knowing how many fields I need to insert before the form gets submitted?

    Started by D3V4‎, Feb 21, 2012 08:21
    • Replies: 8
    • Views: 145
    Yesterday, 01:57 Go to last post
  34. Joining together two regex queries

    Instead of going like this: foreach(scandir($feed->model) as $result) { if(preg_match('/.php$/', $result) && preg_match('/class/', $result)) { echo "YES"; } else {

    Started by Divisive Cotton‎, Feb 21, 2012 10:48
    • Replies: 1
    • Views: 102
    Yesterday, 00:17 Go to last post
  35. Red face validation

    hello all, i have this simple code elseif($_POST == "" || $_POST =="Enter your Email address") { header("Location: Contact.html"); exit; }

    Started by minusten‎, Dec 20, 2011 17:58
    • Replies: 6
    • Views: 418
    Feb 21, 2012, 21:41 Go to last post
  36. Keeping Images Unique

    I am building a "User Profile" feature on my website, including allowing Users to uploads a Profile Picture. The problem is that two separate Users could have a Picture with the same name (e.g. "me.jpg"). What is the best way to handle this in my Upload Script? One person I know suggested...

    Started by DoubleDee‎, Feb 12, 2012 13:44
    • Replies: 15
    • Views: 330
    Feb 21, 2012, 17:29 Go to last post
  37. exif_imagetype not working?

    I use the following code: $fileinfo = exif_imagetype($_FILES); But this yields a fatal error: undefined function. Can someone tell me what my error is here? (Using php 5.3.8) php.net link: http://us3.php.net/manual/en/function.exif-imagetype.php Thanks.

    Started by ShinVe‎, Feb 20, 2012 14:01
    • Replies: 7
    • Views: 185
    Feb 21, 2012, 14:45 Go to last post
  38. Honey Pot results not working. I need a PHP nudge in the right direction.

    Hi Everyone I am trying to cobble together a contact form with a Honey Pot Spam protector. Newby here. I’m basing it off of the following link but I am trying to tweak it so that it will do what I want it to do. http://devgrow.com/simple-php-honey-pot/ You can see the contact form here...

    Started by mguise‎, Feb 21, 2012 11:21
    • Replies: 2
    • Views: 113
    Feb 21, 2012, 14:09 Go to last post
  39. enhancing hacking to Kevin Yank's "Joke Database"

    dear all, trying to hack the joke database from K. Yank's immortal "Build Your Own Database..." to more cranky needs of my own, I want Search Results display not only the joke text as programmed by Kevin in Chapter 7: <h1>Search Results</h1> <?php if(isset($jokes)):?> <table><tr><th> Joke...

    Started by kyankli‎, Feb 16, 2012 12:00
    • Replies: 4
    • Views: 227
    Feb 21, 2012, 13:12 Go to last post
  40. filter_var

    I am not sure if I am using the filter_var command correctly. Regardless of what $src_term is it always sees the statement as false. Can anyone see where I am going wrong with this? $filter="FILTER_VALIDATE_INT"; $error="Bad!"; $src_term = "aaaaaaaaaaaaaa"; if (filter_var($src_term,...

    Started by michaelk46‎, Feb 20, 2012 13:26
    • Replies: 2
    • Views: 133
    Feb 21, 2012, 12:31 Go to last post

+ Post New Thread

Forum Information and Options

Moderators of this Forum

Thread Display Options

Use this control to limit the display of threads to those newer than the specified time frame.

Allows you to choose the data by which the thread list will be sorted.

Order threads in...

Note: when sorting by date, 'descending order' will show the newest results first.

Icon Legend

Contains unread posts
Contains unread posts
Contains no unread posts
Contains no unread posts
More than 25 replies or 300 views
Hot thread with unread posts
More than 25 replies or 300 views
Hot thread with no unread posts
Closed Thread
Thread is closed
Thread Contains a Message Written By You
You have posted in this thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts