Basic PHP Programming

Your guide to basic PHP Programming

Archive for August, 2008

Your First PHP Codes

without comments


Image source: www.flickr.com
Why not exhibit some output onto the screen? It is in truth much easier to achieve with PHP. All you have to do is use PHP language construct called echo and we are done. Here’s how..
Open a blank new file in your editor or notepad and write the below talk about lines in the file. Then save the file with a .php extension. If you are using notepad as editor then be careful about the file extension. In Windows OS the file extensions are often hidden, so you must ensure that file saved has a .php extension.
If that is the exact output on your browser, then it is a success!!! We are on a good start. If you did not see this output, then perhaps PHP was not installed or configured properly. Note that if the PHP file is prompted to be downloaded in your browser, then PHP is not installed or configured properly as the file with .php extension is not being parsed. Please refer to your installation procedure.

Written by Bart

August 18th, 2008 at 1:04 pm

Bad Behavior has blocked 148 access attempts in the last 7 days.