How to learn PHP?
Before you start learning PHP, it's probably a good idea if you have at least some HTML knowledge. This is because PHP has no formatting at all, so while it can do many things that HTML can't, it can't make your site look nice. That's why it is used in conjunction with HTML. PHP for the muscle, HTML for the aesthetics.
First things first, let's check if you have PHP! This will also tell you more information about the version of PHP that you are running.
Next, you have to do a Hello World! script. Sure it's simple, and it's cheesy, but its tradition when learning a language.
You can buy a book from scriptsez.net (Learn PHP the Ez Way) that is made for the beginners, it start from basics of HTML and ends at database driven PHP scripts with example codes:
The link is below: