Tuesday, February 14, 2012

Simple Example of HTML & PHP Page


Here I give an example of one of the easiest  PHP & HTML page that you can create and still follow web standards.


PHP & HTML CODE :
------------------------------
<html>
<head>
      <title>My First PHP Page</title>
<body>
   <?php
                        echo 'Hello World';
?>
</body>
</html>

--------------------------
DISPLAY :
________________

Hello World
________________
Note :  You should save this file [ e.g hello.php ] and place it on PHP enabled server and load it up in your web browser, than you should see " Hello World " displayed .


No comments:

Post a Comment