<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Sat, 06 Sep 2008 18:42:16 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Dhiraj Patra's Blog: Running PHP Scripts with Cron]]></title>
      <guid>http://www.phpdeveloper.org/news/10761</guid>
      <link>http://www.phpdeveloper.org/news/10761</link>
      <description><![CDATA[<p>
<i>Dhiraj Patra</i> has <a href="http://dhirajpatra.blogspot.com/2008/08/running-php-scripts-with-cron.html">posted a tutorial</a> to his "LAM-PHP" blog today looking at a different-than-usual way for running PHP scripts - in the cron.
</p>
<blockquote>
Lots of programmers like PHP for its ability to code and develop web applications fast. Code-debugging is a lot easier than with PERL or C. However, there is one thing a lot of developers are puzzled about, "How to run PHP Scripts with crontab?"
</blockquote>
<p>
He explains how cron can be used effectively to replace including a backend script into another file (bad practice) and how to get started with PHP and cron. He includes how to find if you're using a CGI or Apache version of PHP and how to locate the binary. He takes this knowledge and shows how to apply it and put a sample script into the cron file. You can check out sites like <a href="http://www.adminschoice.com/docs/crontab.htm">this</a> or <a href="http://www.unixgeeks.org/security/newbie/unix/cron-1.html">this</a> for more information on cron itself.
</p>]]></description>
      <pubDate>Tue, 05 Aug 2008 08:45:03 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Developer Tutorials Blog: Running PHP cron jobs - regular scheduled tasks in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/10198</guid>
      <link>http://www.phpdeveloper.org/news/10198</link>
      <description><![CDATA[<p>
On the Developer Tutorials blog, <i>Akash Mehta</i> has posted <a href="http://www.developertutorials.com/blog/php/running-php-cron-jobs-regular-scheduled-tasks-in-php-172/">an introduction</a> to working with command-line PHP scripts and cron jobs for site automation.
</p>
<blockquote>
Scheduled tasks are a fairly common feature in modern web applications. From cleaning out caches every 24 hours to checking subscription periods and even generating reports, more web applications live by the clock than ever before. But how do we schedule the execution of a PHP script on the server side?
</blockquote>
<p>
He shows the two key things to getting it working - an example of a command-line call to a PHP script (executed through his /usr/bin/php) and an example of a line from a crontab showing how to execute the script at midnight every day.
</p>]]></description>
      <pubDate>Fri, 16 May 2008 09:32:25 -0500</pubDate>
    </item>
  </channel>
</rss>
