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

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

Jul 21, 2016 pm 03:28 PM
php xdebug

涓€銆丨畨灁呴综合缃?
銆€銆€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 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

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

Roblox: Bubble Gum Simulator Infinity - How To Get And Use Royal Keys
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Nordhold: Fusion System, Explained
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Mandragora: Whispers Of The Witch Tree - How To Unlock The Grappling Hook
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Hot Topics

Java Tutorial
1664
14
PHP Tutorial
1269
29
C# Tutorial
1249
24
PHP and Python: Comparing Two Popular Programming Languages PHP and Python: Comparing Two Popular Programming Languages Apr 14, 2025 am 12:13 AM

PHP and Python each have their own advantages, and choose according to project requirements. 1.PHP is suitable for web development, especially for rapid development and maintenance of websites. 2. Python is suitable for data science, machine learning and artificial intelligence, with concise syntax and suitable for beginners.

PHP in Action: Real-World Examples and Applications PHP in Action: Real-World Examples and Applications Apr 14, 2025 am 12:19 AM

PHP is widely used in e-commerce, content management systems and API development. 1) E-commerce: used for shopping cart function and payment processing. 2) Content management system: used for dynamic content generation and user management. 3) API development: used for RESTful API development and API security. Through performance optimization and best practices, the efficiency and maintainability of PHP applications are improved.

PHP: A Key Language for Web Development PHP: A Key Language for Web Development Apr 13, 2025 am 12:08 AM

PHP is a scripting language widely used on the server side, especially suitable for web development. 1.PHP can embed HTML, process HTTP requests and responses, and supports a variety of databases. 2.PHP is used to generate dynamic web content, process form data, access databases, etc., with strong community support and open source resources. 3. PHP is an interpreted language, and the execution process includes lexical analysis, grammatical analysis, compilation and execution. 4.PHP can be combined with MySQL for advanced applications such as user registration systems. 5. When debugging PHP, you can use functions such as error_reporting() and var_dump(). 6. Optimize PHP code to use caching mechanisms, optimize database queries and use built-in functions. 7

The Enduring Relevance of PHP: Is It Still Alive? The Enduring Relevance of PHP: Is It Still Alive? Apr 14, 2025 am 12:12 AM

PHP is still dynamic and still occupies an important position in the field of modern programming. 1) PHP's simplicity and powerful community support make it widely used in web development; 2) Its flexibility and stability make it outstanding in handling web forms, database operations and file processing; 3) PHP is constantly evolving and optimizing, suitable for beginners and experienced developers.

PHP vs. Python: Understanding the Differences PHP vs. Python: Understanding the Differences Apr 11, 2025 am 12:15 AM

PHP and Python each have their own advantages, and the choice should be based on project requirements. 1.PHP is suitable for web development, with simple syntax and high execution efficiency. 2. Python is suitable for data science and machine learning, with concise syntax and rich libraries.

PHP and Python: Code Examples and Comparison PHP and Python: Code Examples and Comparison Apr 15, 2025 am 12:07 AM

PHP and Python have their own advantages and disadvantages, and the choice depends on project needs and personal preferences. 1.PHP is suitable for rapid development and maintenance of large-scale web applications. 2. Python dominates the field of data science and machine learning.

PHP vs. Other Languages: A Comparison PHP vs. Other Languages: A Comparison Apr 13, 2025 am 12:19 AM

PHP is suitable for web development, especially in rapid development and processing dynamic content, but is not good at data science and enterprise-level applications. Compared with Python, PHP has more advantages in web development, but is not as good as Python in the field of data science; compared with Java, PHP performs worse in enterprise-level applications, but is more flexible in web development; compared with JavaScript, PHP is more concise in back-end development, but is not as good as JavaScript in front-end development.

PHP and Python: Different Paradigms Explained PHP and Python: Different Paradigms Explained Apr 18, 2025 am 12:26 AM

PHP is mainly procedural programming, but also supports object-oriented programming (OOP); Python supports a variety of paradigms, including OOP, functional and procedural programming. PHP is suitable for web development, and Python is suitable for a variety of applications such as data analysis and machine learning.

See all articles