Testing PHP without the server

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
MikeEller
Forum Newbie
Posts: 11
Joined: Sun Feb 05, 2006 3:43 pm

Testing PHP without the server

Post 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
User avatar
Zoxive
Forum Regular
Posts: 974
Joined: Fri Apr 01, 2005 4:37 pm
Location: Bay City, Michigan

Re: Testing PHP without the server

Post 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.
MikeEller
Forum Newbie
Posts: 11
Joined: Sun Feb 05, 2006 3:43 pm

Re: Testing PHP without the server

Post by MikeEller »

I am on Linux...
I will look at Eclipse

Thanks
User avatar
Zoxive
Forum Regular
Posts: 974
Joined: Fri Apr 01, 2005 4:37 pm
Location: Bay City, Michigan

Re: Testing PHP without the server

Post 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.
MikeEller
Forum Newbie
Posts: 11
Joined: Sun Feb 05, 2006 3:43 pm

Re: Testing PHP without the server

Post 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
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: Testing PHP without the server

Post 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).
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Testing PHP without the server

Post 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.
(#10850)
Post Reply