views:

74

answers:

7

Hello,

I'm trying to build a php site and I'm wanting to test my php files without uploading them to my host. Basically testing them on my own machine before I upload them.

This question has probably been asked a million times, but I can't seem to find a thread on it. Any help would be appreciated.

Thanks in advance

Rich

+4  A: 

Install and run XAMPP: http://www.apachefriends.org/en/xampp.html

Lukman
XAMPP runs for ALL platforms.
thephpdeveloper
Awesome, thanks for your help!
Inserter
put a tick so that people know that this is the answer!
thephpdeveloper
A: 

Install XAMPP. If you're running MS Windows, WAMP is also an option.

outis
A: 

Use Apache Friends XAMPP. It will set up Apache HTTP server, PHP 5 and MySQL 5 (as far as I know, there's probably some more than that). You don't need to know how to configure apache (or any of the modules) to use it.

You will have an htdocs directory which Apache will serve (accessible by http://localhost/) and should be able to put your PHP files there. With my installation, it is at C:\xampp\htdocs.

Carson Myers
A: 

If you have a local machine with the right software: web server with support for PHP, there's no reason why you can't do as you describe.

I'm doing it at the moment with XAMPP on a Windows XP machine, and (at home) with Kubuntu and a LAMP stack.

pavium
+1  A: 

MAMP if you are on a MAC MAMP

Joey Blake
+1  A: 

I use WAMP. One easy install wizard, tons of modules to for Apache and PHP preconfigured and easy to turn on and off to match your remote config.

Chris Sobolewski
A: 

Another option is the Zend Server Community Edition.

Joe Internet