Create your first PHP-enabled page


Today I will explain how you can create your first php enabled page. A PHP script starts with
  <?php and ends with ?>

 First of all open any text editor(notepad++)

create a file name index.php and put it in your web server’s root OR /www OR puclic_html directory with the following content.


 echo ‘Hello World’;


Use your default browser to see output of this code with your web server’s url ending with the /index.php
If you are using localhost then try http://localhost/index.php or

If everything is fine you will see result like

Hello World

Thank you.

Leave a Reply

Your email address will not be published. Required fields are marked *