Thursday, August 7, 2014

Creating First PHP File


For example,
       Create a folder in the   C: > Xampp > htdoc .
       Give name to that folder. (Here I give testing).
      Write the following sample code and name it index.php and save it in the (testing) folder.
                 <?php
                  echo 'Welcome to TNW(Computer & IT Solutions)!';
                  ?>
    Then, open the browser and type:
                Localhost/testing/index.php.
   You will see Welcome to TNW(Computer & IT Solutions)!.




No comments:

Post a Comment