Robin Rodricks
Robin Rodricks

Reputation: 113956

Can PHP be installed on a local machine?

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..)

Upvotes: 2

Views: 2801

Answers (8)

Johan
Johan

Reputation: 20763

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

Upvotes: 0

Hans
Hans

Reputation: 1362

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.

Upvotes: 0

Lance Fisher
Lance Fisher

Reputation: 25813

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

Upvotes: 0

Scott Evernden
Scott Evernden

Reputation: 39940

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.

Upvotes: 1

Michael Stum
Michael Stum

Reputation: 180884

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/

Upvotes: 1

Chad DeShon
Chad DeShon

Reputation: 4782

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.

Upvotes: 2

dkretz
dkretz

Reputation: 37645

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

Upvotes: 2

Simon Groenewolt
Simon Groenewolt

Reputation: 10665

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.

Upvotes: 20

Related Questions