<?xml version="1.0" encoding="gb2312"?>
<rss version="2.0">
<channel>
<title><![CDATA[浪湾 一个思想跳跃的程序员]]></title>
        <image>
        <title>http://hi.baidu.com</title>
        <link>http://hi.baidu.com</link>
        <url>http://img.baidu.com/img/logo-hi.gif</url>
        </image>
<description><![CDATA[欢迎访问 北京论坛 http://www.youistop.com/]]></description>
<link>http://hi.baidu.com/langwan</link>
<language>zh-cn</language>
<generator>www.baidu.com</generator>
<ttl>5</ttl>


<item>
        <title><![CDATA[PHP的FTP函数细节]]></title>
        <link><![CDATA[http://hi.baidu.com/langwan/blog/item/dbeb7f313ea2e51feac4af42.html]]></link>
        <description><![CDATA[
		
		ftp_connect(&quot;127.0.0.1&quot;, 21);<br>
<br>
ftp_connect()实际上有三个参数，第三个参数被缺省。一般函数的缺省都是0或者NULL。<br>
<br>
ftp_connect()函数中的第三个参数timeout的缺省值是90秒。因此请大家多多注意。<br>
<br>
另外需要注意FTP中的ftp_pasv()选项，应该在ftp_connect() -&gt; ftp_login() 之后设置一下，往往FTP帐户密码都对，但就是传不过去文件卡在ftp_put()函数上，都是因为FTP的主被动模式有区别。<br>
<br>
ftp_rename() 函数实际上会覆盖已存在的文件，也需要多多注意。<br>
<br>
另外最好封装一下mkdi <a href="http://hi.baidu.com/langwan/blog/item/dbeb7f313ea2e51feac4af42.html">阅读全文</a>
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/langwan/blog/category/Php">Php</a>&nbsp;<a href="http://hi.baidu.com/langwan/blog/item/dbeb7f313ea2e51feac4af42.html#comment">查看评论</a>]]></description>
        <pubDate>2008-08-16  15:15</pubDate>
        <category><![CDATA[Php]]></category>
        <author><![CDATA[langwanluo]]></author>
		<guid>http://hi.baidu.com/langwan/blog/item/dbeb7f313ea2e51feac4af42.html</guid>
</item>

<item>
        <title><![CDATA[清理锁定的MySQL进程]]></title>
        <link><![CDATA[http://hi.baidu.com/langwan/blog/item/c456cc80d87b37d19123d916.html]]></link>
        <description><![CDATA[
		
		#!/usr/local/bin/php<br>
 <br>
&lt;?php<br>
 <br>
$hostname = &quot;root&quot;;<br>
$username = &quot;langwan&quot;;<br>
$password = &quot;testdb&quot;;<br>
 <br>
$connect = mysql_connect($hostname, $username, $password);<br>
$result = mysql_query(&quot;SHOW PROCESSLIST&quot;, $connect);<br>
while ($proc = mysql_fetch_assoc($result)) {<br>
&nbsp;&nbsp;&nbsp;  if ($proc[&quot;State&quot;] == &quot;Locked&quot;) {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  @mysql_query(&quot;KILL &quot; . $ <a href="http://hi.baidu.com/langwan/blog/item/c456cc80d87b37d19123d916.html">阅读全文</a>
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/langwan/blog/category/Php">Php</a>&nbsp;<a href="http://hi.baidu.com/langwan/blog/item/c456cc80d87b37d19123d916.html#comment">查看评论</a>]]></description>
        <pubDate>2008-08-06  11:55</pubDate>
        <category><![CDATA[Php]]></category>
        <author><![CDATA[langwanluo]]></author>
		<guid>http://hi.baidu.com/langwan/blog/item/c456cc80d87b37d19123d916.html</guid>
</item>

<item>
        <title><![CDATA[MySQL每5分钟一次的监控脚本]]></title>
        <link><![CDATA[http://hi.baidu.com/langwan/blog/item/7ef964d989936c2a11df9b0b.html]]></link>
        <description><![CDATA[
		
		#!/usr/local/bin/php<br>
&lt;?php<br>
<br>
$dbhost = '127.0.0.1';<br>
$dbuser = 'root';<br>
$dbpass = 'langwan';<br>
$dbname = 'testdb';<br>
$logpath = '/var/logs/db';<br>
<br>
$link = mysql_connect($dbhost, $dbuser, $dbpass, $dbname);<br>
<br>
$info = explode('  ', mysql_stat($link));<br>
<br>
$data = array();<br>
<br>
foreach($info as $row) {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;    $t = explode(': ', $row);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;    $data[] = trim($t[1]); <a href="http://hi.baidu.com/langwan/blog/item/7ef964d989936c2a11df9b0b.html">阅读全文</a>
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/langwan/blog/category/Php">Php</a>&nbsp;<a href="http://hi.baidu.com/langwan/blog/item/7ef964d989936c2a11df9b0b.html#comment">查看评论</a>]]></description>
        <pubDate>2008-08-06  11:50</pubDate>
        <category><![CDATA[Php]]></category>
        <author><![CDATA[langwanluo]]></author>
		<guid>http://hi.baidu.com/langwan/blog/item/7ef964d989936c2a11df9b0b.html</guid>
</item>

<item>
        <title><![CDATA[这年头人肉搜索太厉害，在网络里做了坏事千万别留名。]]></title>
        <link><![CDATA[http://hi.baidu.com/langwan/blog/item/d946dbc4904c26ce39db49a0.html]]></link>
        <description><![CDATA[
		
		<p>这年头人肉搜索太厉害，在网络里做了坏事千万别留名。</p>
<p>献给偶尔头脑发热的朋友们。（浪湾 08.06.12 语）</p> 
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/langwan/blog/category/%C0%CB%CD%E5%D3%EF%C2%BC">浪湾语录</a>&nbsp;<a href="http://hi.baidu.com/langwan/blog/item/d946dbc4904c26ce39db49a0.html#comment">查看评论</a>]]></description>
        <pubDate>2008-06-12  18:04</pubDate>
        <category><![CDATA[浪湾语录]]></category>
        <author><![CDATA[langwanluo]]></author>
		<guid>http://hi.baidu.com/langwan/blog/item/d946dbc4904c26ce39db49a0.html</guid>
</item>

<item>
        <title><![CDATA[PHP中文搜索工具]]></title>
        <link><![CDATA[http://hi.baidu.com/langwan/blog/item/5c101930fee52c9ca9018e8b.html]]></link>
        <description><![CDATA[
		
		<p>&nbsp;&nbsp;&nbsp;  依据$rootpath的定义可快速搜索到系统中的简体中文，如果系统中某<br>
&nbsp;&nbsp;&nbsp;  些部分不参与搜索可以通过$filter定制过滤器。如果想排除注释的干<br>
&nbsp;&nbsp;&nbsp;  扰，可以使用$remark忽略注释内的中文。<br>
&nbsp;&nbsp;&nbsp;  <br>
&nbsp;&nbsp;&nbsp;  如果使用shell模式运行本程序，会收到更好的效果。处理完毕后会根<br>
&nbsp;&nbsp;&nbsp;  据$logname的设置输出中文所在文件名称，中文所在行的位置。<br>
&nbsp;&nbsp;&nbsp;  <br>
&nbsp;&nbsp;&nbsp;  作者 浪湾&lt;langwan</p> <a href="http://hi.baidu.com/langwan/blog/item/5c101930fee52c9ca9018e8b.html">阅读全文</a>
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/langwan/blog/category/Php">Php</a>&nbsp;<a href="http://hi.baidu.com/langwan/blog/item/5c101930fee52c9ca9018e8b.html#comment">查看评论</a>]]></description>
        <pubDate>2008-06-05  15:15</pubDate>
        <category><![CDATA[Php]]></category>
        <author><![CDATA[langwanluo]]></author>
		<guid>http://hi.baidu.com/langwan/blog/item/5c101930fee52c9ca9018e8b.html</guid>
</item>

<item>
        <title><![CDATA[吃东西要讲速度。]]></title>
        <link><![CDATA[http://hi.baidu.com/langwan/blog/item/373e6b220972a3a14623e802.html]]></link>
        <description><![CDATA[
		
		嘴巴效率要高，吞吐要快，好吃的东西一样不能放过，这是某些人发胖的成功经验。<br>
<br>
-- 献给吃的快的朋友。《2008.05.29 浪湾语》 
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/langwan/blog/category/%C0%CB%CD%E5%D3%EF%C2%BC">浪湾语录</a>&nbsp;<a href="http://hi.baidu.com/langwan/blog/item/373e6b220972a3a14623e802.html#comment">查看评论</a>]]></description>
        <pubDate>2008-05-29  16:06</pubDate>
        <category><![CDATA[浪湾语录]]></category>
        <author><![CDATA[langwanluo]]></author>
		<guid>http://hi.baidu.com/langwan/blog/item/373e6b220972a3a14623e802.html</guid>
</item>

<item>
        <title><![CDATA[IT的由来]]></title>
        <link><![CDATA[http://hi.baidu.com/langwan/blog/item/0fc452e7a797af2bb9382010.html]]></link>
        <description><![CDATA[
		
		<p>IT的意思就是中国人说的爱喝茶（爱 Tea），所以中国网络最火。</p>
<p>-- 献给同行们。（浪湾 2008.05.28 语）</p> 
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/langwan/blog/category/%C0%CB%CD%E5%D3%EF%C2%BC">浪湾语录</a>&nbsp;<a href="http://hi.baidu.com/langwan/blog/item/0fc452e7a797af2bb9382010.html#comment">查看评论</a>]]></description>
        <pubDate>2008-05-28  11:24</pubDate>
        <category><![CDATA[浪湾语录]]></category>
        <author><![CDATA[langwanluo]]></author>
		<guid>http://hi.baidu.com/langwan/blog/item/0fc452e7a797af2bb9382010.html</guid>
</item>

<item>
        <title><![CDATA[MySQL Proxy 手册]]></title>
        <link><![CDATA[http://hi.baidu.com/langwan/blog/item/9fd01c4c3101a4fcd72afc58.html]]></link>
        <description><![CDATA[
		
		<p>我整理的 MySQL Proxy 手册，有需要的可以下载看</p>
<p><a target="_blank" href="http://w17667.s13.mydiscuz.com/MySQLProxy.chm">http://w17667.s13.mydiscuz.com/MySQLProxy.chm</a></p>
<p> </p> 
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/langwan/blog/category/Php">Php</a>&nbsp;<a href="http://hi.baidu.com/langwan/blog/item/9fd01c4c3101a4fcd72afc58.html#comment">查看评论</a>]]></description>
        <pubDate>2008-05-26  21:44</pubDate>
        <category><![CDATA[Php]]></category>
        <author><![CDATA[langwanluo]]></author>
		<guid>http://hi.baidu.com/langwan/blog/item/9fd01c4c3101a4fcd72afc58.html</guid>
</item>

<item>
        <title><![CDATA[别流鼻涕，今年流行滴口水。]]></title>
        <link><![CDATA[http://hi.baidu.com/langwan/blog/item/251520973197666855fb96c3.html]]></link>
        <description><![CDATA[
		
		别流鼻涕，今年流行滴口水。<br>
<br>
  -- 献给经常吃惊的朋友 《浪湾 08.05.14 语》 
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/langwan/blog/category/%C0%CB%CD%E5%D3%EF%C2%BC">浪湾语录</a>&nbsp;<a href="http://hi.baidu.com/langwan/blog/item/251520973197666855fb96c3.html#comment">查看评论</a>]]></description>
        <pubDate>2008-05-14  18:08</pubDate>
        <category><![CDATA[浪湾语录]]></category>
        <author><![CDATA[langwanluo]]></author>
		<guid>http://hi.baidu.com/langwan/blog/item/251520973197666855fb96c3.html</guid>
</item>

<item>
        <title><![CDATA[2008已经过去了，梦想成为2010年最火的人。]]></title>
        <link><![CDATA[http://hi.baidu.com/langwan/blog/item/a53b75f0a72d00aaa40f5238.html]]></link>
        <description><![CDATA[
		
		<p>2008已经过去了，梦想成为2010年最火的人。</p>
<p>-- 献给那些有梦想有希望的人《浪湾 08.05.14 语》</p> 
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/langwan/blog/category/%C0%CB%CD%E5%D3%EF%C2%BC">浪湾语录</a>&nbsp;<a href="http://hi.baidu.com/langwan/blog/item/a53b75f0a72d00aaa40f5238.html#comment">查看评论</a>]]></description>
        <pubDate>2008-05-14  09:19</pubDate>
        <category><![CDATA[浪湾语录]]></category>
        <author><![CDATA[langwanluo]]></author>
		<guid>http://hi.baidu.com/langwan/blog/item/a53b75f0a72d00aaa40f5238.html</guid>
</item>

<item>
        <title><![CDATA[最近我火气比较大，频繁发地震，这在以前是罕见的。]]></title>
        <link><![CDATA[http://hi.baidu.com/langwan/blog/item/18a9860afd68e43bb1351dba.html]]></link>
        <description><![CDATA[
		
		最近我火气比较大，频繁发地震，这在以前是罕见的。<br>
<br>
献给心情不好的自己 - 《浪湾 08.05.13 语》 
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/langwan/blog/category/%C0%CB%CD%E5%D3%EF%C2%BC">浪湾语录</a>&nbsp;<a href="http://hi.baidu.com/langwan/blog/item/18a9860afd68e43bb1351dba.html#comment">查看评论</a>]]></description>
        <pubDate>2008-05-13  17:18</pubDate>
        <category><![CDATA[浪湾语录]]></category>
        <author><![CDATA[langwanluo]]></author>
		<guid>http://hi.baidu.com/langwan/blog/item/18a9860afd68e43bb1351dba.html</guid>
</item>

<item>
        <title><![CDATA[我老了，大家都老了，我就不感觉自己也老了]]></title>
        <link><![CDATA[http://hi.baidu.com/langwan/blog/item/d946dbc473eac7ce39db4939.html]]></link>
        <description><![CDATA[
		
		我老了，大家都老了，我就不感觉自己也老了<br>
<br>
-- 献给乐观的老年人。（浪湾） 
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/langwan/blog/category/%C0%CB%CD%E5%D3%EF%C2%BC">浪湾语录</a>&nbsp;<a href="http://hi.baidu.com/langwan/blog/item/d946dbc473eac7ce39db4939.html#comment">查看评论</a>]]></description>
        <pubDate>2008-05-06  10:51</pubDate>
        <category><![CDATA[浪湾语录]]></category>
        <author><![CDATA[langwanluo]]></author>
		<guid>http://hi.baidu.com/langwan/blog/item/d946dbc473eac7ce39db4939.html</guid>
</item>

<item>
        <title><![CDATA[Fatal error: Cannot unset string offsets in]]></title>
        <link><![CDATA[http://hi.baidu.com/langwan/blog/item/18a9860a1819873ab1351d89.html]]></link>
        <description><![CDATA[
		
		&lt;?php<br>
<br>
echo 'PHP VERSION:'.PHP_VERSION;<br>
echo '&lt;br /&gt;';<br>
<br>
$a = 'abc';<br>
<br>
$example = 1;<br>
<br>
if($example == 1) {<br>
<br>
&nbsp;&nbsp;&nbsp;   unset($a[0]); // Fatal error: Cannot unset string offsets in<br>
<br>
} elseif($example == 2) {<br>
<br>
&nbsp;&nbsp;&nbsp;   $b = $a[0][0]; // Fatal error: Cannot unset string offsets in<br>
<br>
}<br>
<br>
?&gt;<br>
<br>
这个故障偶尔程序员会犯，尤其是 例子2这种无效赋值。 
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/langwan/blog/category/Php">Php</a>&nbsp;<a href="http://hi.baidu.com/langwan/blog/item/18a9860a1819873ab1351d89.html#comment">查看评论</a>]]></description>
        <pubDate>2008-01-13  12:40</pubDate>
        <category><![CDATA[Php]]></category>
        <author><![CDATA[langwanluo]]></author>
		<guid>http://hi.baidu.com/langwan/blog/item/18a9860a1819873ab1351d89.html</guid>
</item>

<item>
        <title><![CDATA[宁静片刻难求]]></title>
        <link><![CDATA[http://hi.baidu.com/langwan/blog/item/d963d7132141ae065aaf53b9.html]]></link>
        <description><![CDATA[
		
		在卧室米白的小桌上，放上俗称小黑的笔记本。小黑的左边是笔筒，笔筒下压着一打稿纸，稿纸上放着一只派克笔。屋内不刺眼也不暗的灯光。小黑的右边是上下齐脖的粗口水晶杯。<br>
<br>
听着班得瑞的Annie's Wonderland，滴滴答答的敲着键盘，忘了时间、疲劳、焦虑。<br>
<br>
偶尔抬头饮口水，慢慢的含进嘴里，一股清凉由内而外。人生没了意义，平和而享受。<br> 
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/langwan/blog/category/%C9%FA%BB%EE">生活</a>&nbsp;<a href="http://hi.baidu.com/langwan/blog/item/d963d7132141ae065aaf53b9.html#comment">查看评论</a>]]></description>
        <pubDate>2008-01-06  21:01</pubDate>
        <category><![CDATA[生活]]></category>
        <author><![CDATA[langwanluo]]></author>
		<guid>http://hi.baidu.com/langwan/blog/item/d963d7132141ae065aaf53b9.html</guid>
</item>

<item>
        <title><![CDATA[罗马人的三头同盟]]></title>
        <link><![CDATA[http://hi.baidu.com/langwan/blog/item/a9ec57da1635ebd8b7fd484e.html]]></link>
        <description><![CDATA[
		
		庞培、凯撒克拉苏是最早的三头同盟，庞培在西班牙，凯撒在高卢分别发展势力。后期由于庞培的声望比凯撒小，而导致庞培与凯撒进行了一场决战，最终凯撒赢得了战争。并厚葬了庞培。<br>
<br>
也许是由于从埃及那里回来的原因，凯撒想成为独裁者。被元老院众人谋杀。<br>
<br>
之后，安东尼、屋大维、雷必达成为新的三头同盟，但好景不长，终于在安东尼与屋大维的决战中落幕。由屋大维建立了新的罗马帝国。成为真正唯一的独裁者。<br>
<br>
似乎三头同盟的开始就意味着，圆桌前的合作者们会有一天撕破脸的厮杀。<br>
<br>
有空想看看凯撒写 <a href="http://hi.baidu.com/langwan/blog/item/a9ec57da1635ebd8b7fd484e.html">阅读全文</a>
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/langwan/blog/category/%C9%FA%BB%EE">生活</a>&nbsp;<a href="http://hi.baidu.com/langwan/blog/item/a9ec57da1635ebd8b7fd484e.html#comment">查看评论</a>]]></description>
        <pubDate>2007-12-02  09:58</pubDate>
        <category><![CDATA[生活]]></category>
        <author><![CDATA[langwanluo]]></author>
		<guid>http://hi.baidu.com/langwan/blog/item/a9ec57da1635ebd8b7fd484e.html</guid>
</item>


</channel>
</rss>