Page 1 of 1

Testing PHP without the server

Posted: Tue Jan 29, 2008 11:05 am
by MikeEller
Hello,

Is there a way I can run/test my PHP code without having to setup a full blown web server and such on my client machine. Or am I stuck sending the files back and forth?

Either and IDE that does this or a way to setup a PHP environment just for testing code and such.

Thanks,
Mike

Re: Testing PHP without the server

Posted: Tue Jan 29, 2008 11:08 am
by Zoxive
If your on Windows, the Easiest I would say is xampp.

There are a few IDE's that can debug by executing the file with the php executable. I think Eclipse is one of those.

Re: Testing PHP without the server

Posted: Tue Jan 29, 2008 11:09 am
by MikeEller
I am on Linux...
I will look at Eclipse

Thanks

Re: Testing PHP without the server

Posted: Tue Jan 29, 2008 11:15 am
by Zoxive
MikeEller wrote:I am on Linux...
I will look at Eclipse

Thanks
I assumed, your on Windows because I don't see why its such a problem running Apache, or even Lighttpd on linux. I actually run both, and don't notice anything.

Re: Testing PHP without the server

Posted: Tue Jan 29, 2008 12:50 pm
by MikeEller
Yeah, I will probably just break down and run apache on my client machine. I was just wondering if there was way or tool to use to avoid it.

v/r
Mike

Re: Testing PHP without the server

Posted: Tue Jan 29, 2008 9:17 pm
by califdon
MikeEller wrote:Yeah, I will probably just break down and run apache on my client machine. I was just wondering if there was way or tool to use to avoid it.
v/r
Mike
I'd recommend doing that, then you will be testing your development scripts in a real environment. As was said earlier, it's a simple install and doesn't use much resources (as long as it's not serving thousands of requests, of course).

Re: Testing PHP without the server

Posted: Tue Jan 29, 2008 9:46 pm
by Christopher
Yes, I run a localhost webserver on every development machine. I make my Eclipse workspace directory the htdocs directory and checkout sites from CVS there a well.