This is a quick introduction to PHP, which will be expanded on (eventually).
PHP Hyper-text Pre-Processor. Allows web developers to write dynamically generated pages quickly. With synergy!
PHP manual: http://ie.php.net/manual/en/
echo "Hello World!";
chmod 700 hello.php
Without understanding much about the details of PHP, you can save yourself a great deal of time with the use of the PHP include function. The include function takes a file name and simply inserts that file's contents into the script that calls the include function. (Ref: tizag.com)
index.php``\ Where you inserted â€œinclude(â€œmenu.phpâ€);â€ the contents of menu.php are included into index.php at that location. When you add or remove pages from your website, you only need to update one file, menu.php, in order to display a link on every page in your website that includes menu.php.
Like any decent programming language, PHP uses variables.
PHP variables can store any data you wish. They start with a $ sign and contain alphanumerical characters, but must always start with a letter.
$example1 = "example";
This will output the text "example".
Variables as the name suggest can be altered after they're declared.
$example1 = "altered example";
$example1 now contains "altered example" and the previous contents are gone.