Home  Discussion  UltimatePhotoAlbum  Tutorial  Script Directory  Search  Bookstore 
Daily Tip | Getting Started | About Us | Outreach 

Getting Started With PHP

How do I make a PHP page?

Making a PHP enabled web page is as easy as opening a new file in your favorite HTML or text editor. The editor can be as simple as Notepad or as complex as HomeSite. The choice is yours.

Type

<?php
echo "Hello World";
?>

Save this file with the php file extension, such as "hello.php" (without the quotes) to your hard disk.

Upload the file to your PHP enabled web server. It must be in your web server's document root or a directory below it (this is usually a directory called public_html or www or something similar).

Load the page in your web browser, the URL should look something like

http://www.example-domain.com/hello.php

Remember, that you may have to change the extension to suit how the web server is configured. If you're using PHP3, you may have to give your file the php3 extension instead of the standard php.

©2000-2006 phphelp.com Terms of Service   Advertise   

phphelp.com was founded on 21 May 1999 by Steve Knoblock to give php beginners a friendly environment and community in which to solve php programming problems and learn the PHP programming language.

Powered by PHP / MySQL / Apache / RedHat Linux