First Program in PHP


<html>
<body>
<?php

//www.hacknology.in
//First program in php

echo"Hello World!!!";

?>
</body>
</html>

Save this file with .php extension in www directory of your server(i prefer WAMP server) and run this file in your browser as http://localhost/filename.php

  • Here echo is used to print.
  • The html tags used in the above program are not compulsory although it is a good practice.

Previous
Next Post »