What's the best resource for learning PHP?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Coal
Forum Newbie
Posts: 14
Joined: Sun Feb 29, 2004 4:22 pm
Location: Taylorville, IL

What's the best resource for learning PHP?

Post by Coal »

What would you guys/gals suggest as the best way to learn PHP? I have HTML/CSS knowledge as well as knowledge building/designing websites. But I'm wanting to take the next step and make a database driven site that users can interact with. Thanks in advance.
User avatar
tim
DevNet Resident
Posts: 1165
Joined: Thu Feb 12, 2004 7:19 pm
Location: ohio

Post by tim »

first step would be to hit some tutorials.

A good php/MySQL tutorial I would suggest is:
http://hotwired.lycos.com/webmonkey/99/ ... rogramming

Next step is to download some scripts and look at how the variables are set and how they are used.

refer to php.net for functions you may be unclear on. Ie:

this script:
$comment = "comment.txt";
if(file_exists("$comment")) {
$post = fopen($comment, "a");
fputs($post, stripslashes($text));
fclose($post);

I would go to php.net and type in fputs(or fwrite) and file_exist and fclose and see what the commands do and compare them to the script.
magicrobotmonkey
Forum Regular
Posts: 888
Joined: Sun Mar 21, 2004 1:09 pm
Location: Cambridge, MA

Post by magicrobotmonkey »

Get yourself a project. Nothing drives learning like neccesity!
Coal
Forum Newbie
Posts: 14
Joined: Sun Feb 29, 2004 4:22 pm
Location: Taylorville, IL

Re: What's the best resource for learning PHP?

Post by Coal »

magicrobotmonkey wrote:Get yourself a project. Nothing drives learning like neccesity!
Coal wrote:But I'm wanting to take the next step and make a database driven site that users can interact with.
magicrobotmonkey
Forum Regular
Posts: 888
Joined: Sun Mar 21, 2004 1:09 pm
Location: Cambridge, MA

Post by magicrobotmonkey »

perfect!
Coal
Forum Newbie
Posts: 14
Joined: Sun Feb 29, 2004 4:22 pm
Location: Taylorville, IL

Post by Coal »

:wink:
Post Reply