<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[PHPor 的Blog]]></title> 
<link>http://phpor.net/blog/index.php</link> 
<description><![CDATA[Linux+Apache+Mysql+PHP]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[PHPor 的Blog]]></copyright>
<item>
<link>http://phpor.net/blog/read.php?357</link>
<title><![CDATA[web 上获取用户ip的函数]]></title> 
<author>phpor &lt;lijunjie1982@yahoo.com.cn&gt;</author>
<category><![CDATA[ｈｔｔｐ协议]]></category>
<pubDate>Wed, 07 Jan 2009 10:53:56 +0000</pubDate> 
<guid>http://phpor.net/blog/read.php?357</guid> 
<description>
<![CDATA[ 
	<!-------------------><br/>............<br/>
]]>
</description>
</item><item>
<link>http://phpor.net/blog/read.php?356</link>
<title><![CDATA[The main differences between http1.0 and http1.1]]></title> 
<author>phpor &lt;lijunjie1982@yahoo.com.cn&gt;</author>
<category><![CDATA[ｈｔｔｐ协议]]></category>
<pubDate>Wed, 07 Jan 2009 02:38:56 +0000</pubDate> 
<guid>http://phpor.net/blog/read.php?356</guid> 
<description>
<![CDATA[ 
	<!-------------><br/>............<br/>
]]>
</description>
</item><item>
<link>http://phpor.net/blog/read.php?355</link>
<title><![CDATA[HTTP1.1协议中文版-RFC2616[几个小知识点]]]></title> 
<author>phpor &lt;lijunjie1982@yahoo.com.cn&gt;</author>
<category><![CDATA[ｈｔｔｐ协议]]></category>
<pubDate>Wed, 07 Jan 2009 02:37:48 +0000</pubDate> 
<guid>http://phpor.net/blog/read.php?355</guid> 
<description>
<![CDATA[ 
	<!----------------><br/>............<br/>
]]>
</description>
</item><item>
<link>http://phpor.net/blog/read.php?354</link>
<title><![CDATA[软件工程师需要了解的10 个概念]]></title> 
<author>phpor &lt;lijunjie1982@yahoo.com.cn&gt;</author>
<category><![CDATA[程序设计]]></category>
<pubDate>Mon, 05 Jan 2009 11:57:32 +0000</pubDate> 
<guid>http://phpor.net/blog/read.php?354</guid> 
<description>
<![CDATA[ 
	<!-------------------><br/>............<br/>
]]>
</description>
</item><item>
<link>http://phpor.net/blog/read.php?353</link>
<title><![CDATA[apache 诡异现象分析]]></title> 
<author>phpor &lt;lijunjie1982@yahoo.com.cn&gt;</author>
<category><![CDATA[Apache]]></category>
<pubDate>Mon, 05 Jan 2009 10:32:19 +0000</pubDate> 
<guid>http://phpor.net/blog/read.php?353</guid> 
<description>
<![CDATA[ 
	<!---------------------><br/>............<br/>
]]>
</description>
</item><item>
<link>http://phpor.net/blog/read.php?352</link>
<title><![CDATA[如何创建大文件]]></title> 
<author>phpor &lt;lijunjie1982@yahoo.com.cn&gt;</author>
<category><![CDATA[Linux &amp; Unix]]></category>
<pubDate>Wed, 31 Dec 2008 07:03:40 +0000</pubDate> 
<guid>http://phpor.net/blog/read.php?352</guid> 
<description>
<![CDATA[ 
	<p><font face="Courier New">有时候，处于测试的需要，我们想有一个很大的文件，但是手头又没有大文件，怎么办呢？</font></p><p><font face="Courier New">1. 如果你在Linux上，那么，试试这个：</font></p><p><font face="Courier New">dd if=/dev/zero of=/path/to/bigfile bs=1024000 count=1000</font></p><p><font face="Courier New">这样就生成了1024000 &times; 1000 （即：1G) 的文件了</font></p><p><font face="Courier New">2. 如果你安装了PHP环境的话</font></p><p><font face="Courier New">php -r '$fp = fopen(&quot;/path/to/biggile&quot;,&quot;w&quot;);echo ftruncate ($fp,1024*1000*1000);'</font></p><p><font face="Courier New">这样也生成了一个1G的文件</font></p><p><font face="Courier New">记得Solaris里有mkfile这个系统调用的，可以生成指定大小的文件，但是Linux下好像没有；总以为ftruncate 只能将文件截短，其实还能将文件加长；</font></p><p><font face="Courier New">预生成指定大小的文件对于多进程下载时是比较有用的，我们知道的文件的长度之后，直接创建指定大小的文件，然后就可以多线程下载了。</font></p>
]]>
</description>
</item><item>
<link>http://phpor.net/blog/read.php?351</link>
<title><![CDATA[程序文档生成工具 doxygen ]]></title> 
<author>phpor &lt;lijunjie1982@yahoo.com.cn&gt;</author>
<category><![CDATA[PHP]]></category>
<pubDate>Tue, 30 Dec 2008 03:27:05 +0000</pubDate> 
<guid>http://phpor.net/blog/read.php?351</guid> 
<description>
<![CDATA[ 
	http://www.stack.nl/~dimitri/doxygen/index.html<br/>............<br/>
]]>
</description>
</item><item>
<link>http://phpor.net/blog/read.php?350</link>
<title><![CDATA[用qmake快速生成makefile]]></title> 
<author>phpor &lt;lijunjie1982@yahoo.com.cn&gt;</author>
<category><![CDATA[Linux &amp; Unix]]></category>
<pubDate>Tue, 30 Dec 2008 03:12:01 +0000</pubDate> 
<guid>http://phpor.net/blog/read.php?350</guid> 
<description>
<![CDATA[ 
	<!----------><br/>............<br/>
]]>
</description>
</item><item>
<link>http://phpor.net/blog/read.php?349</link>
<title><![CDATA[PHP readline 模块安装]]></title> 
<author>phpor &lt;lijunjie1982@yahoo.com.cn&gt;</author>
<category><![CDATA[PHP]]></category>
<pubDate>Sun, 28 Dec 2008 13:05:07 +0000</pubDate> 
<guid>http://phpor.net/blog/read.php?349</guid> 
<description>
<![CDATA[ 
	<p><font face="Courier New">PHP天生是web的，所以很少有人去使用php的readline模块，我也没有去碰过；今天我想先获取一下mc的状态，过一段时间，再获取一次mc状态，对感兴趣的数字做计算，但是等待未知长度的时间对php来讲就不是那么容易了，于是我就用shell来写，但是出了很多错误，就一气之下要把php的readline模块装上，readline需要几个依赖：</font></p><p><font face="Courier New">[root@ljj ~]# ldd /usr/local/lib/php/extensions/no-debug-non-zts-20060613/readline.so <br />libedit.so.0 =&gt; /usr/local/lib/libedit.so.0 (0x00687000)<br />libncurses.so.5 =&gt; /usr/lib/libncurses.so.5 (0x00111000)<br />libc.so.6 =&gt; /lib/tls/libc.so.6 (0x00d4b000)<br />/lib/ld-linux.so.2 (0x002ae000)</font></p><p><font face="Courier New">下面给出libedit和libncurses的地址:</font></p><p><a href="http://www.thrysoee.dk/editline/libedit-20080712-2.11.tar.gz"><font color="#810081">libedit-20080712-2.11.tar.gz</font></a> </p><p><a href="http://www.invisible-island.net/ncurses/ncurses.faq.htm">http://www.invisible-island.net/ncurses/ncurses.faq.htm</a></p><p>&nbsp;</p><p>&nbsp;</p><p>相关链接：</p><p><a href="http://dev.csdn.net/article/79/79637.shtm">http://dev.csdn.net/article/79/79637.shtm</a></p><p><a href="http://dev.csdn.net/article/79/79631.shtm">http://dev.csdn.net/article/79/79631.shtm</a></p><p><a href="http://www.thrysoee.dk/editline/">http://www.thrysoee.dk/editline/</a></p>
]]>
</description>
</item><item>
<link>http://phpor.net/blog/read.php?348</link>
<title><![CDATA[http 压力测试工具 之 siege]]></title> 
<author>phpor &lt;lijunjie1982@yahoo.com.cn&gt;</author>
<category><![CDATA[Apache]]></category>
<pubDate>Thu, 25 Dec 2008 11:50:20 +0000</pubDate> 
<guid>http://phpor.net/blog/read.php?348</guid> 
<description>
<![CDATA[ 
	<!-----------><br/>............<br/>
]]>
</description>
</item>
</channel>
</rss>