Use PHP Scripts in 3 Steps

main

Here’s a simple three-step process for using/running PHP scripts on a Windows machine.

  1. Download/Install WampServer.
  2. Place script.php into the www directory of your wamp install. If you did everything default it should be located at c:\wamp\www
  3. Run the script by pointing your browser at: http://localhost/script.php. In other words consider the “http://localhost/” to be your domain and the www directory to be the root directory of your server/hosting plan.

If a script isn’t interfaced, step 3 might not be that simple. If you’re lost when this happens, you can do several things: 1) leave a comment here with your question and I’ll do my best to get you through it. 2) learn the basics of PHP. 3) Hire Vadim Zanfirov.

*Mac users: Replace WampServer with XAMPP in step 1. Replace c:\wamp\www with /Applications/XAMPP/htdocs/ in step 2.