<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: 留言</title>
	<atom:link href="http://www.laruence.com/guestbook/feed" rel="self" type="application/rss+xml" />
	<link>http://www.laruence.com</link>
	<description>PHP语言, PHP扩展, Zend引擎相关的研究,技术,新闻分享 - 左手代码 右手诗</description>
	<lastBuildDate>Thu, 09 Feb 2012 12:31:57 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
	<item>
		<title>By: 雪候鸟</title>
		<link>http://www.laruence.com/guestbook/comment-page-8#comment-6037</link>
		<dc:creator>雪候鸟</dc:creator>
		<pubDate>Wed, 08 Feb 2012 04:10:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?page_id=23#comment-6037</guid>
		<description>@Jake 方法是属于类中, 而不是对象的. 反序列化的时候, 如果你当前执行上下文没有这个这个对象对应的类, 则会失败. 如果有, 那么方法也就自然有了(类中)</description>
		<content:encoded><![CDATA[<p>@Jake 方法是属于类中, 而不是对象的. 反序列化的时候, 如果你当前执行上下文没有这个这个对象对应的类, 则会失败. 如果有, 那么方法也就自然有了(类中)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jake</title>
		<link>http://www.laruence.com/guestbook/comment-page-8#comment-6033</link>
		<dc:creator>Jake</dc:creator>
		<pubDate>Wed, 08 Feb 2012 01:40:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?page_id=23#comment-6033</guid>
		<description>请问下，PHP在序列化一个对象的时候，保存的是对象的属性，没有保存方法，在用到这个对象的时候，必须把对象包含进来，然后，可以正常使用。
问题是：在反序列化一个对象的流程是什么样的，是先NEW了一个类，然后把属性赋值一下吗？
教程上说，如果没有把对象包含进来，则对象的方法使用不对。在反序列化时候，具体的操作是什么？</description>
		<content:encoded><![CDATA[<p>请问下，PHP在序列化一个对象的时候，保存的是对象的属性，没有保存方法，在用到这个对象的时候，必须把对象包含进来，然后，可以正常使用。<br />
问题是：在反序列化一个对象的流程是什么样的，是先NEW了一个类，然后把属性赋值一下吗？<br />
教程上说，如果没有把对象包含进来，则对象的方法使用不对。在反序列化时候，具体的操作是什么？</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 雪候鸟</title>
		<link>http://www.laruence.com/guestbook/comment-page-8#comment-6021</link>
		<dc:creator>雪候鸟</dc:creator>
		<pubDate>Mon, 06 Feb 2012 06:09:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?page_id=23#comment-6021</guid>
		<description>@Daniel 这个是SAE帮忙后台操作的.</description>
		<content:encoded><![CDATA[<p>@Daniel 这个是SAE帮忙后台操作的.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel</title>
		<link>http://www.laruence.com/guestbook/comment-page-8#comment-6020</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Mon, 06 Feb 2012 02:44:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?page_id=23#comment-6020</guid>
		<description>您好，请问您是怎么样在SAE上绑定自己的顶级域名的，用哪种方式，望赐教！谢谢，祝好！</description>
		<content:encoded><![CDATA[<p>您好，请问您是怎么样在SAE上绑定自己的顶级域名的，用哪种方式，望赐教！谢谢，祝好！</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chutianyin</title>
		<link>http://www.laruence.com/guestbook/comment-page-8#comment-6010</link>
		<dc:creator>chutianyin</dc:creator>
		<pubDate>Sat, 04 Feb 2012 10:35:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?page_id=23#comment-6010</guid>
		<description>有个问题有点费解，请教一下
get_headers 这个函数 在线手册
http://cn.php.net/manual/zh/function.get-headers.php

中文版本写的是
Note: 

自 PHP 5.1.3 起本函数使用默认的流上下文，其可以用 stream_context_get_default()函数设定和修改。

我现在生产版本是 5.2.11（linux环境fast_cgi模式）
但是使用以后不生效

英文版本里面写的是
Changelog
Version
5.1.3
Description
This function now uses the default stream context, which can be set/changed with the stream_context_set_default() function.

中文版和英文版写的不一样
一个是stream_context_get_default，一个是stream_context_set_default

但是stream_context_set_default这个函数写明了
PHP 5 &gt;= 5.3.0</description>
		<content:encoded><![CDATA[<p>有个问题有点费解，请教一下<br />
get_headers 这个函数 在线手册<br />
<a href="http://cn.php.net/manual/zh/function.get-headers.php" rel="nofollow">http://cn.php.net/manual/zh/function.get-headers.php</a></p>
<p>中文版本写的是<br />
Note: </p>
<p>自 PHP 5.1.3 起本函数使用默认的流上下文，其可以用 stream_context_get_default()函数设定和修改。</p>
<p>我现在生产版本是 5.2.11（linux环境fast_cgi模式）<br />
但是使用以后不生效</p>
<p>英文版本里面写的是<br />
Changelog<br />
Version<br />
5.1.3<br />
Description<br />
This function now uses the default stream context, which can be set/changed with the stream_context_set_default() function.</p>
<p>中文版和英文版写的不一样<br />
一个是stream_context_get_default，一个是stream_context_set_default</p>
<p>但是stream_context_set_default这个函数写明了<br />
PHP 5 &gt;= 5.3.0</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wiml</title>
		<link>http://www.laruence.com/guestbook/comment-page-8#comment-6008</link>
		<dc:creator>wiml</dc:creator>
		<pubDate>Sat, 04 Feb 2012 05:24:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?page_id=23#comment-6008</guid>
		<description>t.php里面的内容就是：
&lt;?php
echo time();</description>
		<content:encoded><![CDATA[<p>t.php里面的内容就是：<br />
&lt;?php<br />
echo time();</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lpf</title>
		<link>http://www.laruence.com/guestbook/comment-page-8#comment-6007</link>
		<dc:creator>lpf</dc:creator>
		<pubDate>Sat, 04 Feb 2012 05:23:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?page_id=23#comment-6007</guid>
		<description>请教一个技术问题：
function g($url){
	$ch = curl_init();
	curl_setopt($ch, CURLOPT_URL, $url);
	curl_setopt($ch, CURLOPT_HEADER, 0);
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);//不要输出，在curl_exec中返回
	
	$ret = curl_exec($ch);
	$errno = curl_errno($ch);
	if($errno){
		echo &#039;Curl error #&#039;.$errno.&#039;: &#039; . curl_error($ch);
		$ret = &#039;&#039;;
	}
	curl_close($ch);
	return $ret;
}
用这段代码请求一个本的URL:
for ($i=1; $i&lt;=30000; $i++){
	$sec = g(&#039;http://192.168.1.8/test/t.php&#039;);
	if ($sec == &#039;&#039;){
		break;
	}
	echo $i.&#039; &#039;;
	flush();
}
请求到28000多次时，就会报:
Curl error #7: Failed to connect to 192.168.1.8: Cannot assign requested address
但http://192.168.1.8/test/t.php肯定没问题，我用浏览器访问，一切正常，用上面的g函数就是不行，但只要等个一分钟左右，就又恢复了可以了</description>
		<content:encoded><![CDATA[<p>请教一个技术问题：<br />
function g($url){<br />
	$ch = curl_init();<br />
	curl_setopt($ch, CURLOPT_URL, $url);<br />
	curl_setopt($ch, CURLOPT_HEADER, 0);<br />
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);//不要输出，在curl_exec中返回</p>
<p>	$ret = curl_exec($ch);<br />
	$errno = curl_errno($ch);<br />
	if($errno){<br />
		echo &#8216;Curl error #&#8217;.$errno.&#8217;: &#8216; . curl_error($ch);<br />
		$ret = &#8221;;<br />
	}<br />
	curl_close($ch);<br />
	return $ret;<br />
}<br />
用这段代码请求一个本的URL:<br />
for ($i=1; $i&lt;=30000; $i++){<br />
	$sec = g(&#039;<a href="http://192.168.1.8/test/t.php&#038;#039" rel="nofollow">http://192.168.1.8/test/t.php&#038;#039</a> <img src='http://www.laruence.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> ;<br />
	if ($sec == &#039;&#039;){<br />
		break;<br />
	}<br />
	echo $i.&#039; &#039;;<br />
	flush();<br />
}<br />
请求到28000多次时，就会报:<br />
Curl error #7: Failed to connect to 192.168.1.8: Cannot assign requested address<br />
但http://192.168.1.8/test/t.php肯定没问题，我用浏览器访问，一切正常，用上面的g函数就是不行，但只要等个一分钟左右，就又恢复了可以了</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gyx</title>
		<link>http://www.laruence.com/guestbook/comment-page-8#comment-6001</link>
		<dc:creator>gyx</dc:creator>
		<pubDate>Fri, 03 Feb 2012 13:27:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?page_id=23#comment-6001</guid>
		<description>博主，请问您的博客声明可以copy吗？</description>
		<content:encoded><![CDATA[<p>博主，请问您的博客声明可以copy吗？</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ljgrich</title>
		<link>http://www.laruence.com/guestbook/comment-page-8#comment-5996</link>
		<dc:creator>ljgrich</dc:creator>
		<pubDate>Fri, 03 Feb 2012 02:02:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?page_id=23#comment-5996</guid>
		<description>博主，您好！
我们老总（一位oracle ocm）对博主这么年轻就在php技术领域取得如此大的成绩深感佩服，当然我更是相当的敬佩！老总非常想和博主见个面，聊聊天，交个朋友。2月底左右我们回北京，不知博主到时能否拨冗相见？</description>
		<content:encoded><![CDATA[<p>博主，您好！<br />
我们老总（一位oracle ocm）对博主这么年轻就在php技术领域取得如此大的成绩深感佩服，当然我更是相当的敬佩！老总非常想和博主见个面，聊聊天，交个朋友。2月底左右我们回北京，不知博主到时能否拨冗相见？</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 战神无限</title>
		<link>http://www.laruence.com/guestbook/comment-page-8#comment-5991</link>
		<dc:creator>战神无限</dc:creator>
		<pubDate>Thu, 02 Feb 2012 10:17:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?page_id=23#comment-5991</guid>
		<description>博主好，我是一个PHPer，最近因为作品里需要一些特殊功能，想要写PHP扩展，我知道PHP支持C/C++语言写扩展，但是有些疑问，那就是，PHP是C语言写的，是不是用C语言来写扩展，比较好呢？另外，申请友链~</description>
		<content:encoded><![CDATA[<p>博主好，我是一个PHPer，最近因为作品里需要一些特殊功能，想要写PHP扩展，我知道PHP支持C/C++语言写扩展，但是有些疑问，那就是，PHP是C语言写的，是不是用C语言来写扩展，比较好呢？另外，申请友链~</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: xiaokaizi</title>
		<link>http://www.laruence.com/guestbook/comment-page-8#comment-5989</link>
		<dc:creator>xiaokaizi</dc:creator>
		<pubDate>Thu, 02 Feb 2012 09:27:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?page_id=23#comment-5989</guid>
		<description>class xx{
    public $box[2] = &#039;fds&#039;;

    public function echso() {
        // ...
    }
}  这样定义类为什么报语法错误？

在zend_language_parser.c里，变量名是不允许带[]的，估计在词法分析那一步把$box[2]分割成了一个变量名，fds是值，到语法分析这步就出错了。
如果是这样原因。问题是为什么要在类的成员变量中这样分割，而普通变量缺不呢?</description>
		<content:encoded><![CDATA[<p>class xx{<br />
    public $box[2] = &#8216;fds&#8217;;</p>
<p>    public function echso() {<br />
        // &#8230;<br />
    }<br />
}  这样定义类为什么报语法错误？</p>
<p>在zend_language_parser.c里，变量名是不允许带[]的，估计在词法分析那一步把$box[2]分割成了一个变量名，fds是值，到语法分析这步就出错了。<br />
如果是这样原因。问题是为什么要在类的成员变量中这样分割，而普通变量缺不呢?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ryan</title>
		<link>http://www.laruence.com/guestbook/comment-page-8#comment-5969</link>
		<dc:creator>ryan</dc:creator>
		<pubDate>Wed, 01 Feb 2012 10:52:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?page_id=23#comment-5969</guid>
		<description>当api中需要传入的参数比较多的时候，您一般如何处理？是传入一个key-value的数组，还是生成一个对象？</description>
		<content:encoded><![CDATA[<p>当api中需要传入的参数比较多的时候，您一般如何处理？是传入一个key-value的数组，还是生成一个对象？</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ljgrich</title>
		<link>http://www.laruence.com/guestbook/comment-page-8#comment-5964</link>
		<dc:creator>ljgrich</dc:creator>
		<pubDate>Wed, 01 Feb 2012 02:05:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?page_id=23#comment-5964</guid>
		<description>非常感谢博主！希望能很快就得到佳音！</description>
		<content:encoded><![CDATA[<p>非常感谢博主！希望能很快就得到佳音！</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: smbrave</title>
		<link>http://www.laruence.com/guestbook/comment-page-8#comment-5956</link>
		<dc:creator>smbrave</dc:creator>
		<pubDate>Tue, 31 Jan 2012 09:25:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?page_id=23#comment-5956</guid>
		<description>大牛，前辈，来学习学的。
我是实习生，目前做QA。希望毕业后能进运维部
还望多多指教。</description>
		<content:encoded><![CDATA[<p>大牛，前辈，来学习学的。<br />
我是实习生，目前做QA。希望毕业后能进运维部<br />
还望多多指教。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 雪候鸟</title>
		<link>http://www.laruence.com/guestbook/comment-page-8#comment-5955</link>
		<dc:creator>雪候鸟</dc:creator>
		<pubDate>Tue, 31 Jan 2012 08:56:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?page_id=23#comment-5955</guid>
		<description>@ljgrich, 我会帮您转播, 谢谢</description>
		<content:encoded><![CDATA[<p>@ljgrich, 我会帮您转播, 谢谢</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ljgrich</title>
		<link>http://www.laruence.com/guestbook/comment-page-8#comment-5952</link>
		<dc:creator>ljgrich</dc:creator>
		<pubDate>Tue, 31 Jan 2012 06:39:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?page_id=23#comment-5952</guid>
		<description>博主，您好！
    不知您的同事中有否年龄较大、想转行做php培训讲师的？如果有，恳请告知，不胜感谢！
    我本人是一老Java程序员（已经过了4s啦），在北京的培训机构和民办大学做过培训讲师。现在协助一年轻有为的原来的同事创业（他是做Unix/Linux和Oracle的）。我和这位同事家都在北京。公司创办已经一年，发展势头良好，且公司有实力雄厚的投资人做后盾。目前目前主要做Linux运维/系统管理方面的培训，做的很专业。做了Linux，怎么能不做php呢？公司下一步计划开展php培训业务，公司的宗旨是，不做则罢，要做就要做的真正专业和高端。为此，急需一个php学科的带头人。
    对于php学科的带头人，公司不仅会给予丰厚的待遇，更重要的是会给予足够的尊重和权利。公司现在湖南，计划马上在北京再成立新的公司。php学科带头人主要在北京工作，会有短期的出差。如果愿意到湖南工作，更加欢迎。
    我的联系方式：
    手机：13681437307
   email：ljgrich@163.com
   qq：2352813142
   再次感谢！</description>
		<content:encoded><![CDATA[<p>博主，您好！<br />
    不知您的同事中有否年龄较大、想转行做php培训讲师的？如果有，恳请告知，不胜感谢！<br />
    我本人是一老Java程序员（已经过了4s啦），在北京的培训机构和民办大学做过培训讲师。现在协助一年轻有为的原来的同事创业（他是做Unix/Linux和Oracle的）。我和这位同事家都在北京。公司创办已经一年，发展势头良好，且公司有实力雄厚的投资人做后盾。目前目前主要做Linux运维/系统管理方面的培训，做的很专业。做了Linux，怎么能不做php呢？公司下一步计划开展php培训业务，公司的宗旨是，不做则罢，要做就要做的真正专业和高端。为此，急需一个php学科的带头人。<br />
    对于php学科的带头人，公司不仅会给予丰厚的待遇，更重要的是会给予足够的尊重和权利。公司现在湖南，计划马上在北京再成立新的公司。php学科带头人主要在北京工作，会有短期的出差。如果愿意到湖南工作，更加欢迎。<br />
    我的联系方式：<br />
    手机：13681437307<br />
   email：ljgrich@163.com<br />
   qq：2352813142<br />
   再次感谢！</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 雪候鸟</title>
		<link>http://www.laruence.com/guestbook/comment-page-8#comment-5951</link>
		<dc:creator>雪候鸟</dc:creator>
		<pubDate>Tue, 31 Jan 2012 05:03:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?page_id=23#comment-5951</guid>
		<description>@justflyhigh 使用fopen, fread之类的流式处理, 尽量避免把所有文件都一次性读入内存.</description>
		<content:encoded><![CDATA[<p>@justflyhigh 使用fopen, fread之类的流式处理, 尽量避免把所有文件都一次性读入内存.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: justflyhigh</title>
		<link>http://www.laruence.com/guestbook/comment-page-8#comment-5946</link>
		<dc:creator>justflyhigh</dc:creator>
		<pubDate>Tue, 31 Jan 2012 01:36:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?page_id=23#comment-5946</guid>
		<description>您好：
    有个问题想向您请教一下，我现在在做一个股票数据分析系统，功能是把文件中的数据读入的数据库中按一定的规则计算股票涨幅、查询股票数据，遇到一个问题，股票数据问件是txt格式的，目前总共有2392个文件，每一个文件中大约有4500条数据，在执行的过程中就超内存了，程序就挂了，有什么好的解决方案呢？</description>
		<content:encoded><![CDATA[<p>您好：<br />
    有个问题想向您请教一下，我现在在做一个股票数据分析系统，功能是把文件中的数据读入的数据库中按一定的规则计算股票涨幅、查询股票数据，遇到一个问题，股票数据问件是txt格式的，目前总共有2392个文件，每一个文件中大约有4500条数据，在执行的过程中就超内存了，程序就挂了，有什么好的解决方案呢？</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Danny</title>
		<link>http://www.laruence.com/guestbook/comment-page-8#comment-5868</link>
		<dc:creator>Danny</dc:creator>
		<pubDate>Thu, 19 Jan 2012 14:33:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?page_id=23#comment-5868</guid>
		<description>正如 http://code.google.com/p/yafphp/issues/detail?id=2 上面所说的，换成 5.3.6的dll就没有问题了，不明白里面的问题是什么，继续努力学习中。。。</description>
		<content:encoded><![CDATA[<p>正如 <a href="http://code.google.com/p/yafphp/issues/detail?id=2" rel="nofollow">http://code.google.com/p/yafphp/issues/detail?id=2</a> 上面所说的，换成 5.3.6的dll就没有问题了，不明白里面的问题是什么，继续努力学习中。。。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Danny</title>
		<link>http://www.laruence.com/guestbook/comment-page-8#comment-5867</link>
		<dc:creator>Danny</dc:creator>
		<pubDate>Thu, 19 Jan 2012 14:06:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?page_id=23#comment-5867</guid>
		<description>老大能请教下么，看到您的 yaf框架，非常崇拜，想使用一下，目前我用的是zend server 5.5 CE，下载的5.3.8的php_yaf.dll，zend server 中显示err，报错 “The system could not load this extension”，对于在windows下使用，还有其他的限制么？打扰了。</description>
		<content:encoded><![CDATA[<p>老大能请教下么，看到您的 yaf框架，非常崇拜，想使用一下，目前我用的是zend server 5.5 CE，下载的5.3.8的php_yaf.dll，zend server 中显示err，报错 “The system could not load this extension”，对于在windows下使用，还有其他的限制么？打扰了。</p>
]]></content:encoded>
	</item>
</channel>
</rss>

