Simple PHP WebServer running from a single file
Simply run it with:
$ php server.php
Or
$ ./server.php
And it will use hardcoded port and hostname. To define something else, simply use the following arguments:
$ ./server.php [interface:port] [document_root]
Simply run it with:
$ php server.mac.php
Or
$ ./server.mac.php
And it will use hardcoded port and hostname. To define something else, simply use the following arguments:
$ ./server.mac.php [interface:port] [document_root]
Thanks to @staatzstreich for this part!
Nickname | Contribution |
@staatzstreich | For the MacOS version of the script. |