34

Possible Duplicate:
PHP server on local machine?

Is it possible to run .php files on my local computer? I know if i open up a web browser and enter the file location into the URL for HTML files, the html file will run and display. Is there a way to do the same with .php files?

Community
  • 1
  • 1
Steven Rogers
  • 1,874
  • 5
  • 25
  • 48

2 Answers2

30

Sure you just need to setup a local web server. Check out XAMPP: http://www.apachefriends.org/en/xampp.html

That will get you up and running in about 10 minutes.

There is now a way to run php locally without installing a server: https://stackoverflow.com/a/21872484/672229

Steven Rogers
  • 1,874
  • 5
  • 25
  • 48
AlienWebguy
  • 76,997
  • 17
  • 122
  • 145
2

Yes but the files need to be processed. For example you can install test servers like mamp / lamp / wamp depending on your plateform.

Basically you need apache / php running.

moxy
  • 1,634
  • 1
  • 11
  • 19