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?
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 running. (There must be an index.php or index.html file for this to work.)