Advertisement
Shailrshah

How to Run PHP files locally with WAMP

Apr 16th, 2014
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.55 KB | None | 0 0
  1. 1. Download and install WAMP from http://www.wampserver.com/en/
  2. 2. Go to C:\wamp\www and make a new folder.
  3. 3. Create a new php file, and type your php code. Save it as filename.php.
  4.  
  5. <!DOCTYPE html>
  6. <html>
  7. <body>
  8.  
  9. <h1>My first PHP page</h1>
  10.  
  11. <?php
  12. echo "Hello World!";
  13. ?>  
  14.  
  15. </body>
  16. </html>
  17.  
  18. 4. Start WampServer.
  19. 5. Right-click on the icon on the taskbar and select the last option, 'Put Online'.
  20. 6. Fire up your browser and type 'localhost' in the URL bar.
  21. 7. Select the name of the new folder you created.
  22. 8. Select your file to see the output.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement