Step 1.) Setup a WAMP server (download: PHP5 APACHE MYSQL for Windows : install WAMP5)
Step 2.) When your WAMP server is installed, put it online (using the menu from the icon in the system tray).
Step 3.) Open C:\wamp\www (or wherever you installed it to) and create the following file named "phpinfo.php" in Notepad (use File->Save as.. and INCLUDE THE QUOTES IN THE FILENAME):
Step 4.) Load up http: // localhost / phpinfo.php (without the spaces)
Step 5.) You should see a page similar to this. If so, congrats you wrote your first PHP script. Continue on. If not, go back to 1 and figure out what you did wrong.
Step 6.) Read and go thru this: PHP MySQL Tutorial (skip step 1 since you already installed WAMP)
I actually really like this website. Its pretty no-bullshit about what you need to know and teaching it to you. Plain design, straightforward tuts.
I think its just as good as any book will teach you, honestly.
Start from the 2 and work your way down to 11.
While you are coding:
Two bookmarks you should use are:
W3Schools Online Web Tutorials
Tizag Tutorials
And this is your PHP manual: PHP: PHP Manual - Manual
Get to know it and love it. When I'm coding PHP, I'm typically landing on that site anywhere from 2-20 times per hour. Everything that PHP can do is listed and defined on that site. Functions, inputs, outputs, syntax, everything. That is your bible.
Use the search in the top right. For example, here are your mysql functions:
PHP: mysql_query - Manual
Googling a PHP command usually works, too. Often times the first result in the SERPs is the PHP manual. And the comments in the PHP manual are often times very helpful, as well.
(MODS: I know I posted this already in Aequitas' thread but I thought this post came out so well that it deserved its own thread. If you think otherwise, please delete it.)
Step 2.) When your WAMP server is installed, put it online (using the menu from the icon in the system tray).
Step 3.) Open C:\wamp\www (or wherever you installed it to) and create the following file named "phpinfo.php" in Notepad (use File->Save as.. and INCLUDE THE QUOTES IN THE FILENAME):
PHP:
<?php
phpinfo();
?>
Step 5.) You should see a page similar to this. If so, congrats you wrote your first PHP script. Continue on. If not, go back to 1 and figure out what you did wrong.
Step 6.) Read and go thru this: PHP MySQL Tutorial (skip step 1 since you already installed WAMP)
I actually really like this website. Its pretty no-bullshit about what you need to know and teaching it to you. Plain design, straightforward tuts.
I think its just as good as any book will teach you, honestly.
Start from the 2 and work your way down to 11.
While you are coding:
Two bookmarks you should use are:
W3Schools Online Web Tutorials
Tizag Tutorials
And this is your PHP manual: PHP: PHP Manual - Manual
Get to know it and love it. When I'm coding PHP, I'm typically landing on that site anywhere from 2-20 times per hour. Everything that PHP can do is listed and defined on that site. Functions, inputs, outputs, syntax, everything. That is your bible.
Use the search in the top right. For example, here are your mysql functions:
PHP: mysql_query - Manual
Googling a PHP command usually works, too. Often times the first result in the SERPs is the PHP manual. And the comments in the PHP manual are often times very helpful, as well.
(MODS: I know I posted this already in Aequitas' thread but I thought this post came out so well that it deserved its own thread. If you think otherwise, please delete it.)