The Basics of PHP
This is a guide that intends you teach you the basics of PHP coding language, and with a knowledge so thorough that you will be able to immediately start to code a major project.
Persevere, learn it, understand.
What is PHP? What can it do? This section provides useful links on reading crucial information on understanding how powerful the engine is, what it can do, and provides a comfortable bedding for future knowledge.
PHP – Wikipedia – a simple understanding of how the engine works
PHP: General Information – a overview on what it can do from people who made it
What is PHP? – an overview from the Tech Republic
What is PHP? – an overview from the Software Projects
Introduction to PHP – a easy quick bulleted overview from W3 Schools
PHP Builder – The ABCs of PHP – very long article on PHP, just read the beginning
In the Beginning
How do I set up a PHP file? What do I do with it? Do I need to configure anything on my server? This section provides information and useful links on understanding how PHP parsers work, where you can find it, and more information as well.
To cut quickly to the core, a PHP file has the extension of .php. Basically, most web hosts out there have PHP as well as other scripting languages and engines like Perl and MySQL installed, so if you are using a larger web host that’s out there, you don’t need to worry much about this.
Writing a .php file is not hard, in fact, you can even use Notepad or a super-basic text editor to write it. All you need to do is save it with the extension of .php and upload it to your server.
It’s important to keep in mind that like any coding, you should never use a rich-text editor like Microsoft Word as they add in formatting that makes it unreadable by the server.
Whenever you write PHP code, you include it in between PHP brackets, and the PHP engine will parse them. HTML code can exist inside a .php file, but it has to be outside of the brackets or the computer will read it and get confused. The only exception is if you are echoing it (more on that later).
<?php // your code here ?>
PHP File Extension – so non-techies know what the mysterious file is
PHP: What Can It Do – it’s here for a reason