09 May 2009

Hello world!!!

-> Download the latest WampServer from here.
-> Edit the DocumentRoot and Directory tag in httpd.conf (WampServer->Apache->httpd.conf).
-> Update register_globals=on in php.ini (WampServer->PHP->php.ini).
-> Stop IIS service if running.
-> Start Apache Web server or restart all Services.
-> Check the Web server accessibility by http://localhost

--------------code starts here--------------
<html>
<head>
<title>My first PHP page</title>
</head>

<body>
<?php echo "Hello world!!!\n"; ?>
</body>
</html>
--------------code ends here--------------

Save the code in the web server home directory as myphp.php
Run your first php program as http://localhost/myphp.php

No comments:

Post a Comment