<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://www.jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>http://www.jackxiang.com/post//</link>
<title><![CDATA[ PHP安装与使用VLD查看opcode代码【PHP安装第三方扩展的方法】]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[Php/Js/Shell/Go]]></category>
<pubDate>Mon, 15 Feb 2016 07:08:17 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	背景：自从PHP引入了一个叫OPcache的扩展，那么如何看OPcache呢，这儿有一个扩展分析PHP代码的性能叫VLD。<br/><br/>需要分析PHP代码的性能，或者说实现同样功能的代码到底哪个更好呢？或者说想知道底层的实现可以使用VLD查看opcode<br/>下载与安装VLD<br/># wget http://pecl.php.net/get/vld-0.11.2.tgz<br/># tar zxvf vld-0.11.2.tgz<br/># cd ./vld-0.11.2<br/># /usr/local/php/bin/phpize&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;或者直接phpize<br/># ./configure --with-php-config=/usr/local/php/bin/php-config --enable-vld<br/># make &amp;&amp; make install<br/>---------------------------------<br/>编辑php.ini文件激活vld扩展：<br/>php.ini位置<br/>#cd /usr/local/php/lib<br/>增加<br/>extension=vld.so<br/> <br/>重启Apache：<br/># /usr/local/apache2/bin/apachectl restart<br/>--------------------------------- <br/>查看phpinfo()信息<br/><br/> <br/>--------------------------------<br/>至此,VLD就安装完了。写个简单的test.php<br/>[php] view plain copy<br/>$a=&#039;123&#039;;&nbsp;&nbsp; <br/>echo $a;&nbsp;&nbsp;<br/><br/> <br/> <br/># php -dvld.active=1 ./test.php<br/>如果没有设置php环境变量的话<br/><br/>#/usr/local/php/bin/php&nbsp;&nbsp;-dvld.active=1&nbsp;&nbsp;test.php<br/><br/>查看结果<br/>。。。。<br/>下面是举例说明怎么看...<br/>更多请转向：http://blog.csdn.net/21aspnet/article/details/7002644
]]>
</description>
</item><item>
<link>http://www.jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论]  PHP安装与使用VLD查看opcode代码【PHP安装第三方扩展的方法】]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>