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?

Link to comment
Share on other sites

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.

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.