<?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: Running PHP cron jobs &#8211; regular scheduled tasks in PHP</title>
	<atom:link href="http://www.developertutorials.com/tutorials/php/running-php-cron-jobs-regular-scheduled-tasks-in-php-172/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.developertutorials.com/tutorials/php/running-php-cron-jobs-regular-scheduled-tasks-in-php-172/</link>
	<description>Web Development and Web Design Information Resources Helping You Build Great Websites!</description>
	<lastBuildDate>Sun, 29 May 2011 21:18:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: atasözleri</title>
		<link>http://www.developertutorials.com/tutorials/php/running-php-cron-jobs-regular-scheduled-tasks-in-php-172/comment-page-1/#comment-790</link>
		<dc:creator>atasözleri</dc:creator>
		<pubDate>Wed, 24 Mar 2010 08:29:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.developertutorials.com/blog/php/running-php-cron-jobs-regular-scheduled-tasks-in-php-172/#comment-790</guid>
		<description>Thank you but i dont understand this method.

I am using this :

exec( &#039;php /home/username/routine_task.php &gt; /home/username/routine_task.log &amp;&#039; );</description>
		<content:encoded><![CDATA[<p>Thank you but i dont understand this method.</p>
<p>I am using this :</p>
<p>exec( &#8216;php /home/username/routine_task.php &gt; /home/username/routine_task.log &amp;&#8217; );</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: adbox</title>
		<link>http://www.developertutorials.com/tutorials/php/running-php-cron-jobs-regular-scheduled-tasks-in-php-172/comment-page-1/#comment-789</link>
		<dc:creator>adbox</dc:creator>
		<pubDate>Sat, 30 Jan 2010 21:23:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.developertutorials.com/blog/php/running-php-cron-jobs-regular-scheduled-tasks-in-php-172/#comment-789</guid>
		<description>I use an external cron management service (free) http://www.cronwatch.com</description>
		<content:encoded><![CDATA[<p>I use an external cron management service (free) <a href="http://www.cronwatch.com" rel="nofollow">http://www.cronwatch.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sanuj</title>
		<link>http://www.developertutorials.com/tutorials/php/running-php-cron-jobs-regular-scheduled-tasks-in-php-172/comment-page-1/#comment-788</link>
		<dc:creator>Sanuj</dc:creator>
		<pubDate>Wed, 25 Nov 2009 06:36:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.developertutorials.com/blog/php/running-php-cron-jobs-regular-scheduled-tasks-in-php-172/#comment-788</guid>
		<description>Hello!

My php file is located at /var/www/html/ddic/ad/a_index.php  and php.ini is at /etc/php.ini

i have kept this line at /etc/crontabl and created a ddic file in cron.daily to execute

30 2 * * * root run-parts /etc/cron.daily

and ddic file as

#!/bin/sh
30 2 * * * * /usr/bin/php /var/www/html/ddic/ad/a_index.php

Will This execute the php file (a_index.php) daily at 2:30 AM.


Please suggest me.</description>
		<content:encoded><![CDATA[<p>Hello!</p>
<p>My php file is located at /var/www/html/ddic/ad/a_index.php  and php.ini is at /etc/php.ini</p>
<p>i have kept this line at /etc/crontabl and created a ddic file in cron.daily to execute</p>
<p>30 2 * * * root run-parts /etc/cron.daily</p>
<p>and ddic file as</p>
<p>#!/bin/sh<br />
30 2 * * * * /usr/bin/php /var/www/html/ddic/ad/a_index.php</p>
<p>Will This execute the php file (a_index.php) daily at 2:30 AM.</p>
<p>Please suggest me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gaditano</title>
		<link>http://www.developertutorials.com/tutorials/php/running-php-cron-jobs-regular-scheduled-tasks-in-php-172/comment-page-1/#comment-787</link>
		<dc:creator>gaditano</dc:creator>
		<pubDate>Sun, 26 Jul 2009 01:48:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.developertutorials.com/blog/php/running-php-cron-jobs-regular-scheduled-tasks-in-php-172/#comment-787</guid>
		<description>Hello,

I&#039;m using the cron but I have a question.
If a run the script from the cron, I&#039;m receiving the message:

Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 45 bytes) in /home/jgodino/public_html/sginfra.com.ar/sginfra_system_files/plugins/dompdf/include/frame.cls.php on line 358

If I run the same scrip from the browser, the program run ok.
This run ok, because the script is reading the php.ini with 64MB.

Is the cron using another php.ini?

Thanks

Gaditano</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>I&#8217;m using the cron but I have a question.<br />
If a run the script from the cron, I&#8217;m receiving the message:</p>
<p>Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 45 bytes) in /home/jgodino/public_html/sginfra.com.ar/sginfra_system_files/plugins/dompdf/include/frame.cls.php on line 358</p>
<p>If I run the same scrip from the browser, the program run ok.<br />
This run ok, because the script is reading the php.ini with 64MB.</p>
<p>Is the cron using another php.ini?</p>
<p>Thanks</p>
<p>Gaditano</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pauluZ</title>
		<link>http://www.developertutorials.com/tutorials/php/running-php-cron-jobs-regular-scheduled-tasks-in-php-172/comment-page-1/#comment-786</link>
		<dc:creator>pauluZ</dc:creator>
		<pubDate>Tue, 20 May 2008 10:13:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.developertutorials.com/blog/php/running-php-cron-jobs-regular-scheduled-tasks-in-php-172/#comment-786</guid>
		<description>Don&#039;t forget to add a parametr -c with the path to php.ini file in the first line inside the php script. Why?
Sometimes the conf file for php isn&#039;t loaded and then you have to point to it:
`#!/usr/bin/php -q -c /etc/php.ini’</description>
		<content:encoded><![CDATA[<p>Don&#8217;t forget to add a parametr -c with the path to php.ini file in the first line inside the php script. Why?<br />
Sometimes the conf file for php isn&#8217;t loaded and then you have to point to it:<br />
`#!/usr/bin/php -q -c /etc/php.ini’</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Craig</title>
		<link>http://www.developertutorials.com/tutorials/php/running-php-cron-jobs-regular-scheduled-tasks-in-php-172/comment-page-1/#comment-785</link>
		<dc:creator>Craig</dc:creator>
		<pubDate>Fri, 16 May 2008 15:16:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.developertutorials.com/blog/php/running-php-cron-jobs-regular-scheduled-tasks-in-php-172/#comment-785</guid>
		<description>You can also add &#039;#!/usr/bin/php -q&#039; as the first line inside the php script.
Chmod the php file as executable, then it will be executable like any other script.

0 0 * * * /usr/bin/php /home/username/myscript.php

turns into:

0 0 * * * /home/username/myscript.php</description>
		<content:encoded><![CDATA[<p>You can also add &#8216;#!/usr/bin/php -q&#8217; as the first line inside the php script.<br />
Chmod the php file as executable, then it will be executable like any other script.</p>
<p>0 0 * * * /usr/bin/php /home/username/myscript.php</p>
<p>turns into:</p>
<p>0 0 * * * /home/username/myscript.php</p>
]]></content:encoded>
	</item>
</channel>
</rss>

