<?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: How to setup a Cron Job</title>
	<atom:link href="http://wpguru.co.uk/2009/02/how-to-setup-a-cron-job/feed/" rel="self" type="application/rss+xml" />
	<link>http://wpguru.co.uk/2009/02/how-to-setup-a-cron-job/</link>
	<description>Dedicated Wordpress Hosting and Support</description>
	<lastBuildDate>Thu, 10 May 2012 13:20:42 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: nSathees</title>
		<link>http://wpguru.co.uk/2009/02/how-to-setup-a-cron-job/comment-page-1/#comment-2501</link>
		<dc:creator>nSathees</dc:creator>
		<pubDate>Mon, 20 Feb 2012 20:33:14 +0000</pubDate>
		<guid isPermaLink="false">http://wordpress-guru.co.uk/?p=62#comment-2501</guid>
		<description>just a thought!

what if I setup a php file with 
header(Location:&#039;http://example.com&#039;) which is my WordPress setup
and trigger that php page via corn job.

Would that work?</description>
		<content:encoded><![CDATA[<p>just a thought!</p>
<p>what if I setup a php file with<br />
header(Location:&#8217;http://example.com&#8217;) which is my WordPress setup<br />
and trigger that php page via corn job.</p>
<p>Would that work?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nSathees</title>
		<link>http://wpguru.co.uk/2009/02/how-to-setup-a-cron-job/comment-page-1/#comment-2499</link>
		<dc:creator>nSathees</dc:creator>
		<pubDate>Mon, 20 Feb 2012 20:24:23 +0000</pubDate>
		<guid isPermaLink="false">http://wordpress-guru.co.uk/?p=62#comment-2499</guid>
		<description>@Brian: Hammered the nail on the head! Thanks for that wp_load point! That&#039;s all I needed to know.</description>
		<content:encoded><![CDATA[<p>@Brian: Hammered the nail on the head! Thanks for that wp_load point! That&#8217;s all I needed to know.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jay Versluis</title>
		<link>http://wpguru.co.uk/2009/02/how-to-setup-a-cron-job/comment-page-1/#comment-2481</link>
		<dc:creator>Jay Versluis</dc:creator>
		<pubDate>Thu, 16 Feb 2012 15:22:06 +0000</pubDate>
		<guid isPermaLink="false">http://wordpress-guru.co.uk/?p=62#comment-2481</guid>
		<description>Superb tip, thank you so much for sharing this. It&#039;ll certainly come in handy ;-)</description>
		<content:encoded><![CDATA[<p>Superb tip, thank you so much for sharing this. It&#8217;ll certainly come in handy <img src='http://wpguru.co.uk/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: taipres</title>
		<link>http://wpguru.co.uk/2009/02/how-to-setup-a-cron-job/comment-page-1/#comment-2469</link>
		<dc:creator>taipres</dc:creator>
		<pubDate>Tue, 14 Feb 2012 01:27:58 +0000</pubDate>
		<guid isPermaLink="false">http://wordpress-guru.co.uk/?p=62#comment-2469</guid>
		<description>The way you prevent a user from triggering your cron php script early is simply ignore all IP&#039;s/Hosts besides your servers.

if (getenv(HTTP_X_FORWARDED_FOR)) { 
$ipaddress = getenv(HTTP_X_FORWARDED_FOR); 
} else { 
$ipaddress = getenv(REMOTE_ADDR); }

if($ipaddress != &quot;1.1.1.1&quot;){
//do nothing
}

I use it on my site http://cheapvpsdeals.info for various things.</description>
		<content:encoded><![CDATA[<p>The way you prevent a user from triggering your cron php script early is simply ignore all IP&#8217;s/Hosts besides your servers.</p>
<p>if (getenv(HTTP_X_FORWARDED_FOR)) {<br />
$ipaddress = getenv(HTTP_X_FORWARDED_FOR);<br />
} else {<br />
$ipaddress = getenv(REMOTE_ADDR); }</p>
<p>if($ipaddress != &#8220;1.1.1.1&#8243;){<br />
//do nothing<br />
}</p>
<p>I use it on my site <a href="http://cheapvpsdeals.info" rel="nofollow">http://cheapvpsdeals.info</a> for various things.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jay Versluis</title>
		<link>http://wpguru.co.uk/2009/02/how-to-setup-a-cron-job/comment-page-1/#comment-2453</link>
		<dc:creator>Jay Versluis</dc:creator>
		<pubDate>Tue, 31 Jan 2012 09:43:10 +0000</pubDate>
		<guid isPermaLink="false">http://wordpress-guru.co.uk/?p=62#comment-2453</guid>
		<description>Hi Roy, 

WordPress has a built-in cron function which plugin developers can use. This however relies on somebody visiting your site regularly so it can appear to be unreliable. They do a good job for internal functions, but you can&#039;t easily trigger a script without writing a plugin.

Plesk calls Cron Jobs &quot;Scheduled Tasks&quot;, you can find those under Tools and Settings (in Hosting Provider View) or under Websites and Domains - Advanced (in Power User View).</description>
		<content:encoded><![CDATA[<p>Hi Roy, </p>
<p>WordPress has a built-in cron function which plugin developers can use. This however relies on somebody visiting your site regularly so it can appear to be unreliable. They do a good job for internal functions, but you can&#8217;t easily trigger a script without writing a plugin.</p>
<p>Plesk calls Cron Jobs &#8220;Scheduled Tasks&#8221;, you can find those under Tools and Settings (in Hosting Provider View) or under Websites and Domains &#8211; Advanced (in Power User View).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roy M J</title>
		<link>http://wpguru.co.uk/2009/02/how-to-setup-a-cron-job/comment-page-1/#comment-2451</link>
		<dc:creator>Roy M J</dc:creator>
		<pubDate>Tue, 31 Jan 2012 07:37:45 +0000</pubDate>
		<guid isPermaLink="false">http://wordpress-guru.co.uk/?p=62#comment-2451</guid>
		<description>Hi,

   I am using a plesk panel with godaddy and i cannot find how to set up a cron job. What i would like to know is whether wordpress has any plugins or set-up a cron job.

Many thanks

Roy M J</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>   I am using a plesk panel with godaddy and i cannot find how to set up a cron job. What i would like to know is whether wordpress has any plugins or set-up a cron job.</p>
<p>Many thanks</p>
<p>Roy M J</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jay Versluis</title>
		<link>http://wpguru.co.uk/2009/02/how-to-setup-a-cron-job/comment-page-1/#comment-2288</link>
		<dc:creator>Jay Versluis</dc:creator>
		<pubDate>Tue, 13 Dec 2011 16:35:38 +0000</pubDate>
		<guid isPermaLink="false">http://wordpress-guru.co.uk/?p=62#comment-2288</guid>
		<description>Super, thanks for sharing Sandy!</description>
		<content:encoded><![CDATA[<p>Super, thanks for sharing Sandy!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sandy Nerja</title>
		<link>http://wpguru.co.uk/2009/02/how-to-setup-a-cron-job/comment-page-1/#comment-2277</link>
		<dc:creator>Sandy Nerja</dc:creator>
		<pubDate>Tue, 06 Dec 2011 17:45:58 +0000</pubDate>
		<guid isPermaLink="false">http://wordpress-guru.co.uk/?p=62#comment-2277</guid>
		<description>My website takes xml feeds from local estate agents, and imports their properties to display on my holiday accommodation website.  The whole thing is written in wordpress, and up to now I have been manually triggering the script that imports the rental properties from the agents sites.

Finally I have got round to automating the process and the missing link was the wp-load.php.  Use it like this at the start of your script:

require( &#039;wp-load.php&#039; );

This assumes your script is in the same folder as wp-load and from then on your script acts like it has been called from Wordpress.

I hope this is useful to someone else.</description>
		<content:encoded><![CDATA[<p>My website takes xml feeds from local estate agents, and imports their properties to display on my holiday accommodation website.  The whole thing is written in wordpress, and up to now I have been manually triggering the script that imports the rental properties from the agents sites.</p>
<p>Finally I have got round to automating the process and the missing link was the wp-load.php.  Use it like this at the start of your script:</p>
<p>require( &#8216;wp-load.php&#8217; );</p>
<p>This assumes your script is in the same folder as wp-load and from then on your script acts like it has been called from WordPress.</p>
<p>I hope this is useful to someone else.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jay Versluis</title>
		<link>http://wpguru.co.uk/2009/02/how-to-setup-a-cron-job/comment-page-1/#comment-2250</link>
		<dc:creator>Jay Versluis</dc:creator>
		<pubDate>Thu, 17 Nov 2011 14:33:26 +0000</pubDate>
		<guid isPermaLink="false">http://wordpress-guru.co.uk/?p=62#comment-2250</guid>
		<description>Hmmm... good question. Since this is a public file it needs to be triggered via http. However, if you move the wimpq-cronpost.php file to somewhere above public level you should be able to trigger it via PHP from the command line queue for example - but I don&#039;t know what the implications of the PhotoQ Plugin will be. I believe the developer said it needs to be in the root folder.

I suppose it doesn&#039;t really matter if you (or someone else) triggers the file more often than it needs to be called since the actual time in between automatic posts is determined via the Plugin Settings. Say you call this file every 5 minutes, but you setup PhotoQ to only post a new picture once every hour, then it will only post it once every hour.</description>
		<content:encoded><![CDATA[<p>Hmmm&#8230; good question. Since this is a public file it needs to be triggered via http. However, if you move the wimpq-cronpost.php file to somewhere above public level you should be able to trigger it via PHP from the command line queue for example &#8211; but I don&#8217;t know what the implications of the PhotoQ Plugin will be. I believe the developer said it needs to be in the root folder.</p>
<p>I suppose it doesn&#8217;t really matter if you (or someone else) triggers the file more often than it needs to be called since the actual time in between automatic posts is determined via the Plugin Settings. Say you call this file every 5 minutes, but you setup PhotoQ to only post a new picture once every hour, then it will only post it once every hour.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonas</title>
		<link>http://wpguru.co.uk/2009/02/how-to-setup-a-cron-job/comment-page-1/#comment-2245</link>
		<dc:creator>Jonas</dc:creator>
		<pubDate>Thu, 10 Nov 2011 17:43:57 +0000</pubDate>
		<guid isPermaLink="false">http://wordpress-guru.co.uk/?p=62#comment-2245</guid>
		<description>Thanks for the article! 

How do you prevent from someone triggering the cron job by just visiting http://www.yourdomain.com/wimpq-cronpost.php ? Is there a way to make sure only the server can trigger the task?</description>
		<content:encoded><![CDATA[<p>Thanks for the article! </p>
<p>How do you prevent from someone triggering the cron job by just visiting <a href="http://www.yourdomain.com/wimpq-cronpost.php" rel="nofollow">http://www.yourdomain.com/wimpq-cronpost.php</a> ? Is there a way to make sure only the server can trigger the task?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pranny</title>
		<link>http://wpguru.co.uk/2009/02/how-to-setup-a-cron-job/comment-page-1/#comment-2040</link>
		<dc:creator>Pranny</dc:creator>
		<pubDate>Mon, 08 Aug 2011 21:15:47 +0000</pubDate>
		<guid isPermaLink="false">http://wordpress-guru.co.uk/?p=62#comment-2040</guid>
		<description>That&#039;s really helpful for me !</description>
		<content:encoded><![CDATA[<p>That&#8217;s really helpful for me !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jay Versluis</title>
		<link>http://wpguru.co.uk/2009/02/how-to-setup-a-cron-job/comment-page-1/#comment-1371</link>
		<dc:creator>Jay Versluis</dc:creator>
		<pubDate>Mon, 14 Feb 2011 16:46:47 +0000</pubDate>
		<guid isPermaLink="false">http://wordpress-guru.co.uk/?p=62#comment-1371</guid>
		<description>Hi Brian,

I&#039;m very sorry you didn&#039;t find the info useful - and reading back over the article I can understand why: the title is indeed misleading. I have changed it to &quot;How to setup a cron job&quot; because that&#039;s what it&#039;s about - nothing to do with Wordpress.

Thanks for contributing the wp-load.php tip - I&#039;ll check it out!</description>
		<content:encoded><![CDATA[<p>Hi Brian,</p>
<p>I&#8217;m very sorry you didn&#8217;t find the info useful &#8211; and reading back over the article I can understand why: the title is indeed misleading. I have changed it to &#8220;How to setup a cron job&#8221; because that&#8217;s what it&#8217;s about &#8211; nothing to do with WordPress.</p>
<p>Thanks for contributing the wp-load.php tip &#8211; I&#8217;ll check it out!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

