Created
July 27, 2017 16:17
-
-
Save sany2k8/ca241b6c8c8c70b777cb07e8cc2f3c32 to your computer and use it in GitHub Desktop.
PHP has a Built-in web server since 5.4.0:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| reference : http://php.net/manual/en/features.commandline.webserver.php | |
| PHP has a Built-in web server since 5.4.0: | |
| Linux: | |
| ====== | |
| /path/to/php -S 127.0.0.1:8080 | |
| Windows: | |
| ======= | |
| c:\path\to\php -S 127.0.0.1:8080 | |
| Will yield: | |
| RESULT | |
| ====== | |
| PHP 5.6.5 Development Server started at Thu Jul 27 10:46:10 2017 | |
| Listening on http://127.0.0.1:8080 | |
| Document root is C:\tmp | |
| Press Ctrl-C to quit. | |
| As shown, the web server document root will be the directory you ran the command from |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment