<?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: PHP实现异步调用方法研究</title>
	<atom:link href="http://www.laruence.com/2008/04/14/318.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.laruence.com/2008/04/14/318.html</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: alex</title>
		<link>http://www.laruence.com/2008/04/14/318.html/comment-page-1#comment-5832</link>
		<dc:creator>alex</dc:creator>
		<pubDate>Thu, 12 Jan 2012 14:25:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?p=318#comment-5832</guid>
		<description>还有个方法，是通过数据库做个任务表保存任务
然后做个shell轮询，执行程序完成后更新任务状态，这样不占用web server的资源</description>
		<content:encoded><![CDATA[<p>还有个方法，是通过数据库做个任务表保存任务<br />
然后做个shell轮询，执行程序完成后更新任务状态，这样不占用web server的资源</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 初学者</title>
		<link>http://www.laruence.com/2008/04/14/318.html/comment-page-1#comment-4606</link>
		<dc:creator>初学者</dc:creator>
		<pubDate>Thu, 14 Jul 2011 10:53:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?p=318#comment-4606</guid>
		<description>咨询一个问题，用curl的话，如果backend.php是一个死循环的话，如何才能杀掉这个进程呢？
重启apache的话可以杀掉，还有其它的方法么？</description>
		<content:encoded><![CDATA[<p>咨询一个问题，用curl的话，如果backend.php是一个死循环的话，如何才能杀掉这个进程呢？<br />
重启apache的话可以杀掉，还有其它的方法么？</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 懒虫</title>
		<link>http://www.laruence.com/2008/04/14/318.html/comment-page-1#comment-3653</link>
		<dc:creator>懒虫</dc:creator>
		<pubDate>Tue, 25 Jan 2011 02:16:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?p=318#comment-3653</guid>
		<description>不好意思 找到错误了 和 那个/没关系，是头我写错了。</description>
		<content:encoded><![CDATA[<p>不好意思 找到错误了 和 那个/没关系，是头我写错了。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 懒虫</title>
		<link>http://www.laruence.com/2008/04/14/318.html/comment-page-1#comment-3652</link>
		<dc:creator>懒虫</dc:creator>
		<pubDate>Tue, 25 Jan 2011 02:06:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?p=318#comment-3652</guid>
		<description>我试了第4个 使用fsockopen
$out = &quot;GET /backend.php  / HTTP/1.1\r\n&quot;;
变成
$out = &quot;GET /backend.php   HTTP/1.1\r\n&quot;;
少了一个 /
这样就会有 HTTP/1.1 400 Bad Request 这个错误
如果加上就不会出现 400 Bad Request 
请问这个是为什么？？</description>
		<content:encoded><![CDATA[<p>我试了第4个 使用fsockopen<br />
$out = &#8220;GET /backend.php  / HTTP/1.1\r\n&#8221;;<br />
变成<br />
$out = &#8220;GET /backend.php   HTTP/1.1\r\n&#8221;;<br />
少了一个 /<br />
这样就会有 HTTP/1.1 400 Bad Request 这个错误<br />
如果加上就不会出现 400 Bad Request<br />
请问这个是为什么？？</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: laruence</title>
		<link>http://www.laruence.com/2008/04/14/318.html/comment-page-1#comment-3649</link>
		<dc:creator>laruence</dc:creator>
		<pubDate>Sat, 22 Jan 2011 15:59:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?p=318#comment-3649</guid>
		<description>@TaoGOGO  ignore只是针对服务端脚本的...</description>
		<content:encoded><![CDATA[<p>@TaoGOGO  ignore只是针对服务端脚本的&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TaoGOGO</title>
		<link>http://www.laruence.com/2008/04/14/318.html/comment-page-1#comment-3647</link>
		<dc:creator>TaoGOGO</dc:creator>
		<pubDate>Sat, 22 Jan 2011 12:15:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?p=318#comment-3647</guid>
		<description>ignore_user_abort也行。。。</description>
		<content:encoded><![CDATA[<p>ignore_user_abort也行。。。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alan</title>
		<link>http://www.laruence.com/2008/04/14/318.html/comment-page-1#comment-3389</link>
		<dc:creator>Alan</dc:creator>
		<pubDate>Mon, 08 Nov 2010 08:00:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?p=318#comment-3389</guid>
		<description>如果不要返回值，或者返回者放在header中，也可以参考这个
http://cn2.php.net/manual/en/function.get-headers.php</description>
		<content:encoded><![CDATA[<p>如果不要返回值，或者返回者放在header中，也可以参考这个<br />
<a href="http://cn2.php.net/manual/en/function.get-headers.php" rel="nofollow">http://cn2.php.net/manual/en/function.get-headers.php</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 雪候鸟</title>
		<link>http://www.laruence.com/2008/04/14/318.html/comment-page-1#comment-122</link>
		<dc:creator>雪候鸟</dc:creator>
		<pubDate>Thu, 28 Aug 2008 05:27:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?p=318#comment-122</guid>
		<description>哦, 呵呵
恩, 这样生成头部应该也行.;)</description>
		<content:encoded><![CDATA[<p>哦, 呵呵<br />
恩, 这样生成头部应该也行.;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sunceenjoy</title>
		<link>http://www.laruence.com/2008/04/14/318.html/comment-page-1#comment-121</link>
		<dc:creator>sunceenjoy</dc:creator>
		<pubDate>Thu, 28 Aug 2008 05:22:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?p=318#comment-121</guid>
		<description>呵呵,我的意思是帮你补充一种方法啊,你看行不。</description>
		<content:encoded><![CDATA[<p>呵呵,我的意思是帮你补充一种方法啊,你看行不。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 雪候鸟</title>
		<link>http://www.laruence.com/2008/04/14/318.html/comment-page-1#comment-118</link>
		<dc:creator>雪候鸟</dc:creator>
		<pubDate>Wed, 27 Aug 2008 09:49:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?p=318#comment-118</guid>
		<description>你想说什么呢?

看来,我得设置回复,一定要输入名字了.呵呵</description>
		<content:encoded><![CDATA[<p>你想说什么呢?</p>
<p>看来,我得设置回复,一定要输入名字了.呵呵</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.laruence.com/2008/04/14/318.html/comment-page-1#comment-116</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Wed, 27 Aug 2008 09:40:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?p=318#comment-116</guid>
		<description>5.
$opts = array(
&#039;http&#039;=&gt;array(&#039;method&#039;=&gt;&quot;GET&quot;,
&#039;header&#039;=&gt;&quot;Accept-language: en\r\nCookie: &quot;.$cookie.&quot;\r\n&quot;
 )
);
$context = stream_context_create($opts);
$fp = fopen(&#039;http://www.example.com&#039;, &#039;r&#039;, false, $context);
//while(!feof($fp))
//$html.=fgets($fp);
fclose($fp);</description>
		<content:encoded><![CDATA[<p>5.<br />
$opts = array(<br />
&#8216;http&#8217;=&gt;array(&#8216;method&#8217;=&gt;&#8221;GET&#8221;,<br />
&#8216;header&#8217;=&gt;&#8221;Accept-language: en\r\nCookie: &#8220;.$cookie.&#8221;\r\n&#8221;<br />
 )<br />
);<br />
$context = stream_context_create($opts);<br />
$fp = fopen(&#8216;<a href="http://www.example.com&#039;" rel="nofollow">http://www.example.com&#039;</a>, &#8216;r&#8217;, false, $context);<br />
//while(!feof($fp))<br />
//$html.=fgets($fp);<br />
fclose($fp);</p>
]]></content:encoded>
	</item>
</channel>
</rss>

