Jump to content

how to test a php script without a server?


thbsp

Recommended Posts

basically the topic is the complete question.  i'm trying to write a simple php script to process a form, but i don't have access to a web server to test it.  i installed php 5.2.6, and made sure the install directory was included in the path environment variable (i'm using windows vista).

what i would like to do is test the script on my own computer before uploading it anywhere.  when i try to open it with a browser i can see the source code, meaning it hasn't been run or processed at all.

do i need to install a web server on my own machine to be able to test the code?  if so, is there a site anywhere that has a web server emulation script i could use instead?

The really really quick way is to use something like Vertrigo.  It is a unified package which installs a web server, PHP, mySQL, PHPAdmin and a couple of other things.  You can start and stop the server when you like - and it's easy to configure.

 

Go search google for Vertrigo - I think you'll find it on Sourceforge.

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.