Vuzereus / simple-php-webserver

Simple PHP WebServer running from a single file

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple PHP WebServer

Simple PHP WebServer running from a single file

Usage

Linux

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]

MacOS

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!

Contributors

Nickname Contribution
@staatzstreich For the MacOS version of the script.

Author

About

Simple PHP WebServer running from a single file

License:MIT License


Languages

Language:HTML 80.4%Language:PHP 19.6%