Skip to content

Instantly share code, notes, and snippets.

@sany2k8
Created July 27, 2017 16:17
Show Gist options
  • Select an option

  • Save sany2k8/ca241b6c8c8c70b777cb07e8cc2f3c32 to your computer and use it in GitHub Desktop.

Select an option

Save sany2k8/ca241b6c8c8c70b777cb07e8cc2f3c32 to your computer and use it in GitHub Desktop.
PHP has a Built-in web server since 5.4.0:
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