PHP Basics
January 10th, 2010 | by Drew |Now that you have installed the necessary web server software and tested that it works (which is included in the manual) we can now get to know the basics of PHP. For our guide we will be using HTTP combined with PHP, this allows PHP code to be embedded into regular html pages and thus simplifying the execution by simply requesting the page. PHP uses start and stop tags in the form of “?php” and “?” and below is a sample:
".. PHP Code".
?>
The following sample has PHP code embedded within HTTP:
Fan: Who are You?
//print output
Echo "My name is MacGyver";?>
Upon execution or opening the page this would give you text in the browser stating the following words. “Who are You?” “My name is MacGyver“. This would be the equivalent hello world program many books use in teaching the basics of programming.

Sorry, comments for this entry are closed at this time.