<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://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://jackxiang.com/post//</link>
<title><![CDATA[PHP包含或读取了哪个配置文件的跟踪探讨。]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[Php/Js/Shell/Go]]></category>
<pubDate>Sun, 24 Mar 2013 03:10:33 +0000</pubDate> 
<guid>http://jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	背景：<br/>&nbsp;&nbsp;我正在读一个不太明白的PHP新程序，像空降到一个众林，出现一个包含/读取某文件是一个黑盒子，想问：如何跟踪PHP在一次执行时读取或include了某个文件？（如配置文件，该配置文件有可能是include进来，有可能是通过直接读取的方式，但不明朗，怎么办好呢？）<br/>PHP高级编程群兄弟出招了：<br/>1.有兄弟建议用find命令查找access time（是文档最后一次被读取的时间）。<br/>2.有兄弟建议get_included_files 来看是哪个文件print_r(get_included_files());，<br/>&nbsp;&nbsp;也顺便提到其它三个精妙的函数：get_included_files ,get_included_path,get_loaded_extensions。<br/>3.也有兄弟提出用安装扩展的方法去实现：http://pecl.php.net/package/inotify<br/>&nbsp;&nbsp;也可以用上次说的php_AOP<br/>&nbsp;&nbsp;aop_add_after(&quot;file_get_contents()&quot;, &#039;file_open_call&#039;);<br/>&nbsp;&nbsp;file_get_contents(&quot;./test.php&quot;);<br/>&nbsp;&nbsp;要是include进来的文件，直接用get_included_files，来判断就好了.(这个函数很厉害，再次有兄弟推荐。)<br/><br/>里面提到AOP，可以参考：<br/>http://hi.baidu.com/bise86/item/a396eed5c8fae8cc1a72b4a1<br/>http://www.croes.org/gerald/projects/aop/documentation_aop_extension_php.pdf<br/><br/>使用inotify防php木马：http://hi.baidu.com/ostech/item/f729c8c2fa8a392447d5c089<br/>php使用inotify实现队列处理：http://blog.jiunile.com/php%E4%BD%BF%E7%94%A8inotify%E5%AE%9E%E7%8E%B0%E9%98%9F%E5%88%97%E5%A4%84%E7%90%86.html<br/><br/>通过rsync+inotify实现数据的实时备份：http://ixdba.blog.51cto.com/2895551/580280<br/>如果是linux与linux还可以使用rsync+inotify方式进行传输，速度也是非常快的....：<br/>http://my.oschina.net/7shell/blog/57355
]]>
</description>
</item><item>
<link>http://jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] PHP包含或读取了哪个配置文件的跟踪探讨。]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>