<?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: Fake Fork in PHP</title>
	<atom:link href="http://joseph.randomnetworks.com/archives/2005/10/21/fake-fork-in-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://joseph.randomnetworks.com/archives/2005/10/21/fake-fork-in-php/</link>
	<description>cat /dev/random</description>
	<lastBuildDate>Sat, 04 Jul 2009 08:07:38 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9-rare</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: fork e javascript - Pagina 3 &#124; hilpers</title>
		<link>http://joseph.randomnetworks.com/archives/2005/10/21/fake-fork-in-php/comment-page-1/#comment-735015</link>
		<dc:creator>fork e javascript - Pagina 3 &#124; hilpers</dc:creator>
		<pubDate>Sun, 18 Jan 2009 13:10:48 +0000</pubDate>
		<guid isPermaLink="false">http://joseph.randomnetworks.com/?p=506#comment-735015</guid>
		<description>[...] HTTP. Quindi, l&#039;unica e&#039; non fare mai exit o kill dai figli.  Dai anche una occhiata a questo:  http://joseph.randomnetworks.com/arc...e-fork-in-php/  &gt;&gt; Altrimenti non ti rimane che far scrivere in un vettore IPC lo stato, &gt;&gt; e quando [...]</description>
		<content:encoded><![CDATA[<p>[...] HTTP. Quindi, l&#8217;unica e&#8217; non fare mai exit o kill dai figli.  Dai anche una occhiata a questo:  <a href="http://joseph.randomnetworks.com/arc...e-fork-in-php/" rel="nofollow">http://joseph.randomnetworks.com/arc&#8230;e-fork-in-php/</a>  &gt;&gt; Altrimenti non ti rimane che far scrivere in un vettore IPC lo stato, &gt;&gt; e quando [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: XSet &#187; Blog Archive &#187; Parallel Processing in PHP</title>
		<link>http://joseph.randomnetworks.com/archives/2005/10/21/fake-fork-in-php/comment-page-1/#comment-624028</link>
		<dc:creator>XSet &#187; Blog Archive &#187; Parallel Processing in PHP</dc:creator>
		<pubDate>Thu, 25 Sep 2008 13:52:41 +0000</pubDate>
		<guid isPermaLink="false">http://joseph.randomnetworks.com/?p=506#comment-624028</guid>
		<description>[...] Of course in the LAMP development world a quick and dirty hack is often as good as a well rounded programmewd solution. Joseph Scott shows you how to use a Linux execution feature (namely forking a command into the background using and ampersand) to parallelise applications that don&#8217;t need to return anything. I&#8217;ve actually used this technique to build a one hit multiplexor for various applications: Quick and dirty fake fork for non returning scripts [...]</description>
		<content:encoded><![CDATA[<p>[...] Of course in the LAMP development world a quick and dirty hack is often as good as a well rounded programmewd solution. Joseph Scott shows you how to use a Linux execution feature (namely forking a command into the background using and ampersand) to parallelise applications that don&#8217;t need to return anything. I&#8217;ve actually used this technique to build a one hit multiplexor for various applications: Quick and dirty fake fork for non returning scripts [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Observer</title>
		<link>http://joseph.randomnetworks.com/archives/2005/10/21/fake-fork-in-php/comment-page-1/#comment-488235</link>
		<dc:creator>Observer</dc:creator>
		<pubDate>Mon, 23 Jun 2008 10:45:35 +0000</pubDate>
		<guid isPermaLink="false">http://joseph.randomnetworks.com/?p=506#comment-488235</guid>
		<description>Another way to perform several tasks simultaneously is by using stream_select(). This is useful in the cases where you php script makes many requests to multiple other websites. 

In one of my web scripts, I had to make up to 24 http requests. When I done it sequentially, it took over 1 minute. Now it takes less than 10 seconds. See it and test it here: http://www.info-express.org/website-popularity-checker</description>
		<content:encoded><![CDATA[<p>Another way to perform several tasks simultaneously is by using stream_select(). This is useful in the cases where you php script makes many requests to multiple other websites. </p>
<p>In one of my web scripts, I had to make up to 24 http requests. When I done it sequentially, it took over 1 minute. Now it takes less than 10 seconds. See it and test it here: <a href="http://www.info-express.org/website-popularity-checker" rel="nofollow">http://www.info-express.org/website-popularity-checker</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Molina</title>
		<link>http://joseph.randomnetworks.com/archives/2005/10/21/fake-fork-in-php/comment-page-1/#comment-472516</link>
		<dc:creator>Daniel Molina</dc:creator>
		<pubDate>Thu, 12 Jun 2008 01:22:49 +0000</pubDate>
		<guid isPermaLink="false">http://joseph.randomnetworks.com/?p=506#comment-472516</guid>
		<description>Sorry, but this isn&#039;t a fork fake or similar such thing. The system call fork(2) -- wrapped arround php with pcntl_fork() function -- sets the entry point to the right line of source, instead your implementation that set the entry point to the start of the script.

Play a little with labels if you want the desired results. Also, see the way to save the environment and allocated variables... Be careful y you serialize the $GLOBALS variable.</description>
		<content:encoded><![CDATA[<p>Sorry, but this isn&#8217;t a fork fake or similar such thing. The system call fork(2) &#8212; wrapped arround php with pcntl_fork() function &#8212; sets the entry point to the right line of source, instead your implementation that set the entry point to the start of the script.</p>
<p>Play a little with labels if you want the desired results. Also, see the way to save the environment and allocated variables&#8230; Be careful y you serialize the $GLOBALS variable.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephen Hosking</title>
		<link>http://joseph.randomnetworks.com/archives/2005/10/21/fake-fork-in-php/comment-page-1/#comment-278954</link>
		<dc:creator>Stephen Hosking</dc:creator>
		<pubDate>Sat, 17 Nov 2007 04:32:15 +0000</pubDate>
		<guid isPermaLink="false">http://joseph.randomnetworks.com/?p=506#comment-278954</guid>
		<description>Thanks so much for this! I needed to create a background process and tried pcntl_fork, but couldn&#039;t do it because I&#039;m using Apache. So I was stuck, until I luckily hit this web page. That&#039;s really great Unix work nutting out that command line! I fiddled with it a bit, and worked out 1. You do seem to need all those options - &quot;&amp;&quot; is not enough, and 2. in &#039;&lt; &amp;- &#039; the space is not necessary, &#039;&lt;&amp;- &#039; works fine.

Thanks again!</description>
		<content:encoded><![CDATA[<p>Thanks so much for this! I needed to create a background process and tried pcntl_fork, but couldn&#8217;t do it because I&#8217;m using Apache. So I was stuck, until I luckily hit this web page. That&#8217;s really great Unix work nutting out that command line! I fiddled with it a bit, and worked out 1. You do seem to need all those options &#8211; &#8220;&amp;&#8221; is not enough, and 2. in &#8216;&lt; &amp;- &#8216; the space is not necessary, &#8216;&lt;&amp;- &#8216; works fine.</p>
<p>Thanks again!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ferdhie</title>
		<link>http://joseph.randomnetworks.com/archives/2005/10/21/fake-fork-in-php/comment-page-1/#comment-145752</link>
		<dc:creator>ferdhie</dc:creator>
		<pubDate>Wed, 21 Mar 2007 14:26:25 +0000</pubDate>
		<guid isPermaLink="false">http://joseph.randomnetworks.com/?p=506#comment-145752</guid>
		<description>I&#039;ve tried with ping, but the apache seems to wait for the request to return
exec(&quot;ping yahoo.com 2&gt;&amp;1 1&gt;/tmp/ping.log &amp;&quot;);
got any idea?</description>
		<content:encoded><![CDATA[<p>I&#8217;ve tried with ping, but the apache seems to wait for the request to return<br />
exec(&#8220;ping yahoo.com 2&gt;&amp;1 1&gt;/tmp/ping.log &amp;&#8221;);<br />
got any idea?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Breyten&#8217;s Dev Blog &#187; Blog Archive &#187; links for 2005-11-02</title>
		<link>http://joseph.randomnetworks.com/archives/2005/10/21/fake-fork-in-php/comment-page-1/#comment-7561</link>
		<dc:creator>Breyten&#8217;s Dev Blog &#187; Blog Archive &#187; links for 2005-11-02</dc:creator>
		<pubDate>Sat, 08 Apr 2006 17:54:35 +0000</pubDate>
		<guid isPermaLink="false">http://joseph.randomnetworks.com/?p=506#comment-7561</guid>
		<description>[...] Joseph Scott’s Blog » Fake Fork in PHP &#8220;here are times when it would be really handy to perform a fork in PHP when it is running as an Apache module. There is a way to fake this, sort of.&#8221; (tags: php) [...]</description>
		<content:encoded><![CDATA[<p>[...] Joseph Scott’s Blog » Fake Fork in PHP &#8220;here are times when it would be really handy to perform a fork in PHP when it is running as an Apache module. There is a way to fake this, sort of.&#8221; (tags: php) [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
