search
HomeBackend DevelopmentPHP Tutorialphp搐ц兘浼汲卒嗘瀽宸ュ叿

涓€銆丨畨灁呴综合缃?
銆€銆€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/...
Statement
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
PHP Performance Tuning for High Traffic WebsitesPHP Performance Tuning for High Traffic WebsitesMay 14, 2025 am 12:13 AM

ThesecrettokeepingaPHP-poweredwebsiterunningsmoothlyunderheavyloadinvolvesseveralkeystrategies:1)ImplementopcodecachingwithOPcachetoreducescriptexecutiontime,2)UsedatabasequerycachingwithRedistolessendatabaseload,3)LeverageCDNslikeCloudflareforservin

Dependency Injection in PHP: Code Examples for BeginnersDependency Injection in PHP: Code Examples for BeginnersMay 14, 2025 am 12:08 AM

You should care about DependencyInjection(DI) because it makes your code clearer and easier to maintain. 1) DI makes it more modular by decoupling classes, 2) improves the convenience of testing and code flexibility, 3) Use DI containers to manage complex dependencies, but pay attention to performance impact and circular dependencies, 4) The best practice is to rely on abstract interfaces to achieve loose coupling.

PHP Performance: is it possible to optimize the application?PHP Performance: is it possible to optimize the application?May 14, 2025 am 12:04 AM

Yes,optimizingaPHPapplicationispossibleandessential.1)ImplementcachingusingAPCutoreducedatabaseload.2)Optimizedatabaseswithindexing,efficientqueries,andconnectionpooling.3)Enhancecodewithbuilt-infunctions,avoidingglobalvariables,andusingopcodecaching

PHP Performance Optimization: The Ultimate GuidePHP Performance Optimization: The Ultimate GuideMay 14, 2025 am 12:02 AM

ThekeystrategiestosignificantlyboostPHPapplicationperformanceare:1)UseopcodecachinglikeOPcachetoreduceexecutiontime,2)Optimizedatabaseinteractionswithpreparedstatementsandproperindexing,3)ConfigurewebserverslikeNginxwithPHP-FPMforbetterperformance,4)

PHP Dependency Injection Container: A Quick StartPHP Dependency Injection Container: A Quick StartMay 13, 2025 am 12:11 AM

APHPDependencyInjectionContainerisatoolthatmanagesclassdependencies,enhancingcodemodularity,testability,andmaintainability.Itactsasacentralhubforcreatingandinjectingdependencies,thusreducingtightcouplingandeasingunittesting.

Dependency Injection vs. Service Locator in PHPDependency Injection vs. Service Locator in PHPMay 13, 2025 am 12:10 AM

Select DependencyInjection (DI) for large applications, ServiceLocator is suitable for small projects or prototypes. 1) DI improves the testability and modularity of the code through constructor injection. 2) ServiceLocator obtains services through center registration, which is convenient but may lead to an increase in code coupling.

PHP performance optimization strategies.PHP performance optimization strategies.May 13, 2025 am 12:06 AM

PHPapplicationscanbeoptimizedforspeedandefficiencyby:1)enablingopcacheinphp.ini,2)usingpreparedstatementswithPDOfordatabasequeries,3)replacingloopswitharray_filterandarray_mapfordataprocessing,4)configuringNginxasareverseproxy,5)implementingcachingwi

PHP Email Validation: Ensuring Emails Are Sent CorrectlyPHP Email Validation: Ensuring Emails Are Sent CorrectlyMay 13, 2025 am 12:06 AM

PHPemailvalidationinvolvesthreesteps:1)Formatvalidationusingregularexpressionstochecktheemailformat;2)DNSvalidationtoensurethedomainhasavalidMXrecord;3)SMTPvalidation,themostthoroughmethod,whichchecksifthemailboxexistsbyconnectingtotheSMTPserver.Impl

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools