note 112667 added to features.commandline.webserver
| From: | IvanFerrer | Date: | Wed, 10 Jul 2013 20:03:42 +0000 |
| Subject: | note 112667 added to features.commandline.webserver | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-195562@lists.php.net to get a copy of this message | ||
On Windows you may find useful to have a phpserver.bat file in shell:sendto with the folowing:
explorer http://localhost:8888
rem check if arg is file or dir
if exist "%~1\" (
php -S localhost:8888 -t "%~1"
) else (
php -S localhost:8888 -t "%~dp1"
)
then for fast web testing you only have to SendTo a file or folder to this bat and it will open your
explorer and run the server.
----
Server IP: 69.147.83.199
Probable Submitter: 87.217.5.133
----
Manual Page -- http://php.net/manual/en/features.commandline.webserver.php
Edit -- https://master.php.net/note/edit/112667
Del: integrated -- https://master.php.net/note/delete/112667/integrated
Del: useless -- https://master.php.net/note/delete/112667/useless
Del: bad code -- https://master.php.net/note/delete/112667/bad+code
Del: spam -- https://master.php.net/note/delete/112667/spam
Del: non-english -- https://master.php.net/note/delete/112667/non-english
Del: in docs -- https://master.php.net/note/delete/112667/in+docs
Del: other reasons-- https://master.php.net/note/delete/112667
Reject -- https://master.php.net/note/reject/112667
Search -- https://master.php.net/manage/user-notes.php