1. Your first PHP page
Create a file named helloworld.php
and put it in your web servers root directory (DOCUMENT_ROOT)
with the following content:
<html> <head>
<title>PHP page1</title> </head>
<body> <?php echo "<p>Hello
World</p>"; ?> </body>
</html> |
Use your browser to access the file with your web access
URL, ending with the "/hello.php" file reference.
For example, http://localhost/helloworld.php
If everything is setup correctly, this file will be parsed
by PHP and by viewing the source of the php file, you
will see :
<html> <head>
<title>PHP page1</title> </head>
<body> <p>Hello World</p>
</body> </html> |
Tutorial
2 - IF statments
Locating An PHP Web Hosting Provider:
iPowerWeb.com
is one of the best choice for PHP web hosting. It has
all of the basic components needed for operating most
websites. And they did it at $7.95 per month.