note 116443 deleted from tutorial.requirements by salathe
| From: | salathe@php.net | Date: | Tue, 02 Aug 2016 12:12:41 +0000 |
| Subject: | note 116443 deleted from tutorial.requirements by salathe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-206183@lists.php.net to get a copy of this message | ||
Note Submitter: wojciech dot fornal at gmail dot com
----
For really simple ad hoc server working at any location you want, you can use PHP's built-in
web server (available since PHP 5.4.0). Just run in the shell/cli in a directory where you have your
.php files:
$ php -S localhost:8000
This will run PHP built-in server on your localhost and port 8000. If you want to learn more about
available options you can use --help flag.
$ php --help
Please note that enabling directory listing requires additional effort.