PHP has built a Web server in the CLI SAPI since 5.4, which is convenient for developers.
Just execute in the project directory
Php-s localhost:8001
Access link, the terminal will produce access log
E:\php\test\web_server>php-s localhost:8001
PHP 5.4.33 Development Server started at Sat Sep 26 12:10:01 2015
Listening on http://localhost:8001
Document Root is E:\php\test\web_server
Press Ctrl-c to quit.
[Sat Sep 12:10:07 2015] 127.0.0.1:65349 [m]:/phpinfo.php
[Sat Sep 12:10:07 2015] 127.0.0.1:65350 [m]:/phpinfo.php?=phpe9568f34-d428-11d2-a769-00aa001acf42
[Sat Sep 12:10:07 2015] 127.0.0.1:65351 [m]:/phpinfo.php?=phpe9568f35-d428-11d2-a769-00aa001acf42
[Sat Sep 12:10:07 2015] 127.0.0.1:65352 [404]:/favicon.ico-no such file or directory
Directory and different php.ini configurations can be specified
Php-s localhost:8001-t E:\php\test\web_server\-C D:\software\amp\php-5.6.5-Win32-VC11-x64\php.ini
Originally PHP 5.4 From the CLI SAPI built-in server Oh, the highest version of the use of small series is also php5.3 oh.