<?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 Tutorial &#8211; Forking using wget or php cli in the background</title>
	<atom:link href="http://www.saynotoflash.com/archives/php-tutorial-forking-using-wget-in-the-background/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.saynotoflash.com/archives/php-tutorial-forking-using-wget-in-the-background/</link>
	<description>PHP, Symfony, Web Development</description>
	<lastBuildDate>Fri, 27 Aug 2010 16:23:50 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Simon Holywell</title>
		<link>http://www.saynotoflash.com/archives/php-tutorial-forking-using-wget-in-the-background/comment-page-1/#comment-22211</link>
		<dc:creator>Simon Holywell</dc:creator>
		<pubDate>Mon, 09 Aug 2010 22:57:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.saynotoflash.com/?p=13#comment-22211</guid>
		<description>@Jason That is fine unless you need to call the script from a remote server via wget.</description>
		<content:encoded><![CDATA[<p>@Jason That is fine unless you need to call the script from a remote server via wget.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://www.saynotoflash.com/archives/php-tutorial-forking-using-wget-in-the-background/comment-page-1/#comment-22107</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Sun, 30 May 2010 18:42:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.saynotoflash.com/?p=13#comment-22107</guid>
		<description>to make sure normal webusers are not accessing this unless im missing something, just pass and argv value in the command and check for it in the script.  As far as i know ARGV can not be POSTED, so only a command line method can pass this value.  So only your script and a terminal can call it.</description>
		<content:encoded><![CDATA[<p>to make sure normal webusers are not accessing this unless im missing something, just pass and argv value in the command and check for it in the script.  As far as i know ARGV can not be POSTED, so only a command line method can pass this value.  So only your script and a terminal can call it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon Holywell</title>
		<link>http://www.saynotoflash.com/archives/php-tutorial-forking-using-wget-in-the-background/comment-page-1/#comment-22093</link>
		<dc:creator>Simon Holywell</dc:creator>
		<pubDate>Wed, 12 May 2010 18:59:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.saynotoflash.com/?p=13#comment-22093</guid>
		<description>You can use wget and just pass it a secret key to stop others from accessing the script as I have described here: http://blog.simonholywell.com/post/374209271/linux-to-windows-server-migrating-and-securing-your-cron</description>
		<content:encoded><![CDATA[<p>You can use wget and just pass it a secret key to stop others from accessing the script as I have described here: <a href="http://blog.simonholywell.com/post/374209271/linux-to-windows-server-migrating-and-securing-your-cron" rel="nofollow">http://blog.simonholywell.com/post/374209271/linux-to-windows-server-migrating-and-securing-your-cron</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jestep</title>
		<link>http://www.saynotoflash.com/archives/php-tutorial-forking-using-wget-in-the-background/comment-page-1/#comment-22039</link>
		<dc:creator>jestep</dc:creator>
		<pubDate>Tue, 23 Mar 2010 21:29:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.saynotoflash.com/?p=13#comment-22039</guid>
		<description>You would need to use php via the command line, and place the file outside of the home directory. Assuming your home directory is /home/username/web/, /home/username/public_html/ or something similar, you would use something like:

&lt;code&gt;
$command = &quot;nohup /usr/local/bin/php -f /home/username/execute.php&quot;;

//Then:

@exec( &quot;$command&gt; /dev/null &amp;&quot;, $arrOutput );
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>You would need to use php via the command line, and place the file outside of the home directory. Assuming your home directory is /home/username/web/, /home/username/public_html/ or something similar, you would use something like:</p>
<p><code><br />
$command = "nohup /usr/local/bin/php -f /home/username/execute.php";</p>
<p>//Then:</p>
<p>@exec( "$command> /dev/null &#038;", $arrOutput );<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Lewis Design</title>
		<link>http://www.saynotoflash.com/archives/php-tutorial-forking-using-wget-in-the-background/comment-page-1/#comment-22033</link>
		<dc:creator>Brian Lewis Design</dc:creator>
		<pubDate>Wed, 17 Mar 2010 21:01:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.saynotoflash.com/?p=13#comment-22033</guid>
		<description>now hoe do you keep people from directly accessing the file http://www.mysite.com/background_script.php? So that exec() is the only way to run it?</description>
		<content:encoded><![CDATA[<p>now hoe do you keep people from directly accessing the file <a href="http://www.mysite.com/background_script.php?" rel="nofollow">http://www.mysite.com/background_script.php?</a> So that exec() is the only way to run it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jestep</title>
		<link>http://www.saynotoflash.com/archives/php-tutorial-forking-using-wget-in-the-background/comment-page-1/#comment-21582</link>
		<dc:creator>jestep</dc:creator>
		<pubDate>Tue, 30 Jun 2009 00:18:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.saynotoflash.com/?p=13#comment-21582</guid>
		<description>In this case they were. 

Normally I would go with php cli:
php -f /path/to/page &gt; /dev/null &amp;</description>
		<content:encoded><![CDATA[<p>In this case they were. </p>
<p>Normally I would go with php cli:<br />
php -f /path/to/page > /dev/null &</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan</title>
		<link>http://www.saynotoflash.com/archives/php-tutorial-forking-using-wget-in-the-background/comment-page-1/#comment-21581</link>
		<dc:creator>Jonathan</dc:creator>
		<pubDate>Tue, 30 Jun 2009 00:06:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.saynotoflash.com/?p=13#comment-21581</guid>
		<description>Are the two scripts on different machines?  Why not simply call the php CLI from exec?</description>
		<content:encoded><![CDATA[<p>Are the two scripts on different machines?  Why not simply call the php CLI from exec?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
