for($i=5;$i>=0;$i--){ echo 'count down :'; if($i==0){ print('ignition'); } } a very simple program in php
I've been thinking of learning php as well, but I am wondering what would be a good classical book on the subject ? I am familiar with algorithmics and know how to code in several other languages (not c though).
The best practice to learn php. Step 1. First understand how you can run php pages on your computer. the best way is to install EasyPHP. this will enable you to run php scripts on your local host. Step 2. find a simple php script example from the internet. (The script should be very simple, DO not start with large complicated scripts). try to run the script on your localhost Step 3. Study the code line by line. try to make simple changes in it which will make you understand the the code in depth, how it is working and which line is doing which task. Step 4. Repeat Step 2 and 3 with different example codes. Step 5. Think of a simple task to be performed in php, Search the internet for a script that best fits your solution. Playing with Codes and carefully observing line by line will bring you up making large scripts your self. SELF OBSERVATION IS THE BEST TUTOR. thanks
I just bought the "PHP5 & MySQL Bible" by Converse & Park last night from Boarders. I can't put it down (except to look up more PHP stuff).. I recommend it (at this point). -Joe