PHP server on local machine?
问题 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. How do I do that? 回答1: Install and run XAMPP: http://www.apachefriends.org/en/xampp.html 回答2: PHP 5.4 and later have a built-in web server these days. You simply run the command from the terminal: cd path/to/your/app php -S localhost:8000 Then in your browser go to http://localhost:8000 and boom, your system should be up and