php自带的本地调试功能怎么用?

WBOY
Release: 2016-06-23 13:45:54
Original
828 people have browsed it

这个简单的调试功能好象是在5.4以后版本提供的,以前用过,现在忘了怎么用了,有谁知道呢?


回复讨论(解决方案)

你是指Xdebug吗?

不是,是PHP自带的简单HTTP功能

哦,你是指PHP内含的HTTPServer,这个没用过。这应该说是预览用的,应该不叫调试。。。。

哦,你是指PHP内含的HTTPServer,这个没用过。这应该说是预览用的,应该不叫调试。。。。


就是指这个HTTPServer

cd $PHP_INSTALL_PATH  
./bin/php -S : -t   
如:  
前台运行:  
./bin/php -S localhost:80 -t /data/www/  
后台运行:  
./bin/php -S localhost:80 -t /data/www/ >> /tmp/access.log 2>&1 &  

cd $PHP_INSTALL_PATH  
./bin/php -S : -t   
如:  
前台运行:  
./bin/php -S localhost:80 -t /data/www/  
后台运行:  
./bin/php -S localhost:80 -t /data/www/ >> /tmp/access.log 2>&1 &  


不错,就是这个,非常感谢!
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!