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
- Host: GitHub
- URL: https://github.com/jiab77/simple-php-webserver
- Owner: Jiab77
- License: mit
- Created: 2023-02-05T00:26:08.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-28T02:08:34.000Z (about 2 years ago)
- Last Synced: 2025-04-23T14:15:21.672Z (13 days ago)
- Topics: php, simple, webserver
- Language: HTML
- Homepage:
- Size: 16.6 KB
- Stars: 2
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)