Is There A Simple PHP Web Server [closed]
Solution 1:
PHP 5.4+ includes a new command (docs):
php -S localhost:8000
Which will launch a simple PHP web server.
You can also make the web server accessible on port 8000 to any interface with:
php -S 0.0.0.0:8000
Solution 2:
You need a webserver - there's no way around that if you want to access the output of the scripts via http.
There are some very minimal webservers which will run PHP via CGI. e.g. monkey httpd (last time I had a look this compiled to 49kb) and which can run as daemons or via [x]inetd.
You might also have a look at nanoweb - a webserver written in PHP.
ISR there's some discussion over whether PHP6 will be bundled with a minimal webserver for dev/testing.