Running PHP pages through browser offline
Moderator: General Moderators
Running PHP pages through browser offline
I am trying to develop PHP code, and keep having to upload the page to a website to try it. I can of course install my PHP to my own PC, but then I also have to install a server too (I use Win XP).
My question is if it's possible to run PHP scripts through my browser without installing a server (e.g. IIS), and also without having to upload constantly to webspace to try it out (where I need to be online).
My question is if it's possible to run PHP scripts through my browser without installing a server (e.g. IIS), and also without having to upload constantly to webspace to try it out (where I need to be online).
- superdezign
- DevNet Master
- Posts: 4135
- Joined: Sat Jan 20, 2007 11:06 pm
Use xampp for a quick and easy setup: http://www.apachefriends.org/en/xampp.html
Hi,
Thanks very much, that seems like the best option at the moment, though the download is quite high (almost 200 MB) if I just want to use it for PHP. I presume there's nothing else?
Thanks very much, that seems like the best option at the moment, though the download is quite high (almost 200 MB) if I just want to use it for PHP. I presume there's nothing else?
Last edited by Twinbee on Wed Jul 25, 2007 12:19 pm, edited 1 time in total.
- superdezign
- DevNet Master
- Posts: 4135
- Joined: Sat Jan 20, 2007 11:06 pm
Just tried EasyPHP which was initially found at: http://en.wikipedia.org/wiki/Comparison_of_WAMPs
Only 8 mb (compressed), and it does the job nicely. The only thing I was stuck on was that I needed to put web pages into its special www folder (found in the browser via http://127.0.0.1) rather than loading from an arbitrary place on my HD. Is there any way to load from any place I want from the HD?
Thanks all for the help!
Only 8 mb (compressed), and it does the job nicely. The only thing I was stuck on was that I needed to put web pages into its special www folder (found in the browser via http://127.0.0.1) rather than loading from an arbitrary place on my HD. Is there any way to load from any place I want from the HD?
Thanks all for the help!
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
On apachefriends.org the installer for XAMPP 1.6.3 is only 34 MB, where did you find it where it was 200? And in my opinion XAMPP is good. It is much quicker than downloading individual parts and makes set up easier. Having a localhost testing server is a must for me because it allows me to test across many browsers and many operating systems quickly.
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
- Ollie Saunders
- DevNet Master
- Posts: 3179
- Joined: Tue May 24, 2005 6:01 pm
- Location: UK
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact: