views:

536

answers:

9

For Web-dev, can the PHP Processor be installed on a regular Windows XP machine, such that viewing PHP files through a browser executes the PHP script? (NOT Windows Server 2003)

I even downloaded PHP but it appears they want it installed on a server.

Any other ways to quickly preview and run PHP on a local machine WITHOUT uploading the file to server? (Dreamweaver can process the static HTML within PHP files..)

+19  A: 

I suggest:

http://www.wampserver.com/en/

or

http://www.apachefriends.org/en/xampp.html

These are easy-install packages of apache+php+mysql for windows.

Simon Groenewolt
Wamp server is excellent!
Gary Willoughby
For more info see my next question - http://stackoverflow.com/questions/410391/wamp-server-not-working
Jenko
+2  A: 

I use the XAMPP LAMP stack. One click install on Windows XP Pro and Home versions.

le dorfier
+2  A: 

Sure. Just download the windows binaries from the php download page. http://www.php.net/downloads.php

You will need a webserver (such as apache) instealled if you want to parse webpages. But, with just that download you can run php scripts.

BlueWaldo
I think that using php.exe you can even run web pages if you save the output as .htm and preview it in a browser (i.e. php.exe mypage.php > mypage.htm"). Some Limitations with that approach though.
Michael Stum
+1  A: 

XAMPP is the obvious one, but there is another nice one: The Uniform Server, which is designed to be mobile (i.e. to be used on removable media like CD-ROMs):

http://www.uniformserver.com/

Michael Stum
+1  A: 

I've been pretty happy thus far with the less-bloated XAMPP Lite. And despite the note at that link it's updated as often as XAMPP is.

Scott Evernden
A: 

try this one:

http://www.appservnetwork.com/

gave me good results.

Gabriel Sosa
A: 

Microsoft Web Platform Installer looks like a good solution, but you need Vista.

Lance Fisher
A: 

You can, as already mentioned, go about it the easier way by installing something like XAMPP (my personal favorite) or, if you want to mimic something closer to a server environment, install VirtualBox/VirtualPC and create a virtual machine running Debian or whatever server OS you need, with the appropriate PHP, Apache2 (etc...) packages.

I find this to be sometimes preferable to using XAMPP, since XAMPP comes packaged with a specific set of Apache or PHP modules and you may need something not already pre-packaged with XAMPP.

Hans
A: 

XAMPP will do the work for you, but beware that most php servers runs on some kind of unix so often it is close but not really the same.

I'm thinking on basic differences like paths, path delimiters, symbolic links etc etc

Feel free to do a search on "WAMP vs LAMP" for more info.

/Johan

Johan