An open API service indexing awesome lists of open source software.

https://github.com/jiab77/simple-php-webserver

Simple PHP WebServer running from a single file
https://github.com/jiab77/simple-php-webserver

php simple webserver

Last synced: 13 days ago
JSON representation

Simple PHP WebServer running from a single file

Awesome Lists containing this project

README

        

# Simple PHP WebServer

Simple PHP WebServer running from a single file

## Usage

### Linux

Simply run it with:

```console
$ php server.php
```

Or

```console
$ ./server.php
```

And it will use hardcoded port and hostname. To define something else, simply use the following arguments:

```console
$ ./server.php [interface:port] [document_root]
```

### MacOS

Simply run it with:

```console
$ php server.mac.php
```

Or

```console
$ ./server.mac.php
```

And it will use hardcoded port and hostname. To define something else, simply use the following arguments:

```console
$ ./server.mac.php [interface:port] [document_root]
```

> Thanks to [@staatzstreich](https://github.com/staatzstreich) for this part!

## Contributors


Nickname
Contribution


@staatzstreich
For the MacOS version of the script.

## Author

* [@Jiab77](https://github.com/Jiab77)