There’s no need for a server if using PHP 5.5+ – it has a built-in server (http://www.php.net/manual/en/features.commandline.webserver.php)
Just use:
$ cd ~/public_html
$ php -S localhost:8000
More Related Contents:
- PHP server on local machine?
- how to use json_encode for my output?
- Extracting data from Json in Php
- regular expression [closed]
- Displaying HTML with Blade shows the HTML code
- Why is require_once so bad to use?
- array_splice() for associative arrays
- Matching a space in regex
- Python equivalent of PHP’s compact() and extract()
- Can PHP namespaces contain variables?
- How do I convert output of number_format back to numbers in PHP?
- Why can’t PHP create a directory with 777 permissions?
- PHP function to delete all between certain character(s) in string
- When setting environment variables in Apache RewriteRule directives, what causes the variable name to be prefixed with “REDIRECT_”?
- Rerouting all php requests through index.php
- How do you pull first 100 characters of a string in PHP
- PHP Array Syntax Parse Error Left Square Bracket “[” [closed]
- PHP what is the best way to write data to middle of file without rewriting file
- double results in my array ( mysql_fetch_array )
- How to convert all images to JPG format in PHP?
- Post to another page within a PHP script
- Laravel – Using (:any?) wildcard for ALL routes?
- php string function to get substring before the last occurrence of a character
- Save PHP variables to a text file
- Difference between break and continue in PHP?
- Difference between Eloquent\Model::get() and all()
- How to Check for a Specific Type of Object in PHP
- Replacing \r\n with PHP
- Limit download speed using PHP
- Check if links are broken in php