Home > Backend Development > PHP Tutorial > php搐ц兘浼汲卒嗘瀽宸ュ叿

php搐ц兘浼汲卒嗘瀽宸ュ叿

WBOY
Release: 2016-07-21 15:28:57
Original
1625 people have browsed it

涓€銆丨畨灁呴综合缃?
銆€銆€1銆䷷笅枞絇HP鄄刋Debug铓╁睍锛倀Embroidery鍧€锛歨ttp://xdebug.org/

銆€銆€2銆丸湪Linux涓嬬紪璇戨畨瑁匵Debug

寮ku椤
tar -xzf xdebug-2.0.0RC3.gz
cd xdebug-2.0.0RC3
/usr/local/php/bin/phpize
./configure --enable-xdebug
cp modules/xdebug.so /usr/local/php/lib/php/extensions/no-debug- non-zts-20020429/ The end_extension_ts end_extension_ts end_extension_ts debug.so€鍦ㄤ綅缃€ ?

寮ku椤
vi /usr/local/php/lib/php.ini

抆€銆€奇敼php.ini锛屽哓鄄HP锷犻Euro g爜濡备笅:


[Xdebug]

zend_extension_ts="/usr/local/php/lib/php/extensions/no-debug-non-zts-20020429/xdebug.so " xdebug.profiler_enable=on xdebug.trace_output_dir="/tmp/xdebug" xdebug.profiler_output_dir="/tmp/xdebug" xdebug.profiler_output_name="script"

寮KUANG椤
mkdir -p /tmp/xdebug
chmod 755 /tmp/xdebug
chown www:www /tmp/xdebug
/usr/local/apache/bin/apachectl -k restart

.net/projects/wincachegrind/ How to use Debug?tmp/xdebug?tmp/xdebug num_chknum_php_cachegrind.out
銆€銆€usr_local_apache_htdocs_app_login_showHeaderLogin_php_cachegrind.out
銆€醆€usr_local_apache_htdocs_app_play_play_php_cachegrind.out out
銆€銆€usr_local_apache_htdocs_tag_tags_php_cachegrind.out
銆€銆€usr_local_apache_htdocs_top_top_php_cachegrind.out

銆€銆€2銆丸皢浠ヤ笂鏂囦Huan鎷Crazy礉鍒itching windows涓婏纴鐢ㄥ鎴风杞HuanWinCacheGrind铓援呑呣忎釜鏂囦Huan锛彽彂霜PB Mutual Juan婸HP绋尔簭铓ц铓€Key楥楄鄄勬椂邂综合涶闀匡 Details
銆€銆€/usr/local/apache/htdocs/tag/tags.php銆€銆€銆€銆€銆€銆€Key楁椂840ms

銆€銆€涓夈€丸垎鏋愮粨馋滐 Details
銆€銆€1銆?usr/local/apache/htdocs/ tag/tags.php




銆€銆€(1)Keychain鈥怀cross殑殑filter_tags鍑 must隟鍑红鹇鍦?usr/local/apache/htdocs/tag/tags.php鄄" /usr/local/apache/htdocs/include /misc.php /usr/local/apache/htdocs/include /misc.php etForbiddenTags ilter_tags filter_tags filter_tags filter_tags filter_tags ForbiddenTags充埗浠g爜

浠g爜濡备笅:


function getForbiddenTags()
{

$tagsPath=TEMPLATE_FILE_PATH."tags/forbidden_tags.txt" ;
if(file_exists($tagsPath))
{

$fp = fopen($tagsPath, "r"); $arrconf = array ();
if ($fp)
{
while (!feof($fp))
{
$line = fgets($fp, 1024);
$line = trim($line);

$ rows = explode("#", $line); $coumns = explode("=", trim($rows[0])); if(""!=trim($coumns[0] )) { $arrconf[trim($coumns[0])] = trim($coumns[1]);
}
}
}
return $arrconf;
}
}


(4)瀵筭etForbiddenTags鍑 must隟杩涜鍒嗘瀽锛屽叾涓殑PHP鍑 mustard隟trim琚皟鐢ㄤ简16827娆°€?BR>銆€銆€

銆€銆€(5)鍙兘阃犳垚鐡 Falls镄勫师锲狅 Details涁鍦?usr/local/apache/template/tags/forbidden_tags.txt鏂囦Huanjuan纴鏂囨湰鏁版偁搴涶殑鏁堢巼涓嶉珮銆?BR>銆€銆€阃愯璇毲彇鍑 must隟fgets銆佷 Mutual鍙婂幓闄ゅ瓧绗︿苓よact鄄勭┖锏鞨Key呮寚瀹氱殑瀛楃镄勫嚱鏁皌rim鍦ㄩ珮璐軻irrigated with water and suffocated铁堢巼庯纴鍙 mutual han嬭瘯fopen銆丫乫read銆乫scanf涔嬬 was 锄勬枃浠浠 inert鍙栧姱鏁help纴瀵gui瘮涓€涓娨€?/P>

http://www.bkjia.com/PHPjc/323508.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/323508.htmlTechArticle涓€銆丨畸稁瑁呴综合缃?1抆䷷笅枞絇HP鄄鈋Debug铓╁睍锛xdebug.org/ ttp://xdebug.org/ 2xdebug.org/ local/php/...
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