Archive for August, 2008
Your First PHP Codes

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.