note 119903 added to features.commandline.webserver
| From: | ohcc at 163 dot com | Date: | Sat, 17 Sep 2016 19:29:57 +0000 |
| Subject: | note 119903 added to features.commandline.webserver | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-206610@lists.php.net to get a copy of this message | ||
Do NOT use the -t option if you want to use a router script, you can change current working
directory to the web document root before launching the php built-in web server.
[works fine]
cd /d C:\Web\Server
php -S www.51-n.com:80 router.php -n -d expose_php=0 -d display_errors=0 -d
extension_dir="ext"
[always gets a 500 error]
php -S www.51-n.com:80 router.php -t C:\Web\Server -n -d expose_php=0 -d display_errors=0 -d
extension_dir="ext"
----
Server IP: 72.52.91.14
Probable Submitter: 118.117.77.213
----
Manual Page -- http://php.net/manual/en/features.commandline.webserver.php
Edit -- https://master.php.net/note/edit/119903
Del: integrated -- https://master.php.net/note/delete/119903/integrated
Del: useless -- https://master.php.net/note/delete/119903/useless
Del: bad code -- https://master.php.net/note/delete/119903/bad+code
Del: spam -- https://master.php.net/note/delete/119903/spam
Del: non-english -- https://master.php.net/note/delete/119903/non-english
Del: in docs -- https://master.php.net/note/delete/119903/in+docs
Del: other reasons-- https://master.php.net/note/delete/119903
Reject -- https://master.php.net/note/reject/119903
Search -- https://master.php.net/manage/user-notes.php