Home > Backend Development > PHP Tutorial > php自带的本地调试功能如何用

php自带的本地调试功能如何用

WBOY
Release: 2016-06-13 12:09:27
Original
1883 people have browsed it

php自带的本地调试功能怎么用?
这个简单的调试功能好象是在5.4以后版本提供的,以前用过,现在忘了怎么用了,有谁知道呢?
------解决思路----------------------
你是指Xdebug吗?
------解决思路----------------------
哦,你是指PHP内含的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 &  

Related labels:
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