<?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, 18 May 2013 13:06:14 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[PHPMaster.com: How I Faked Scheduled Database Dumps Without Cron]]></title>
      <guid>http://www.phpdeveloper.org/news/17737</guid>
      <link>http://www.phpdeveloper.org/news/17737</link>
      <description><![CDATA[<p>
On PHPMaster.com today there's a new tutorial about a way to <a href="http://phpmaster.com/faked-scheduled-dumps-without-cron/">simulate cron jobs</a> to dump the contents of a database with a simple script that fires off based on the last login time of a certain user (using the <a href="http://www.mysqldumper.net/">MySqlDumper</a> tool).
</p>
<blockquote>
My program required a accurate username and password to present its features to the user, and there is one predefined user who is idle most of the time and does just two things: wipe stale database entries and restore the database when needed. According to my login procedure, each time a user successfully logs in the system automatically updates the last login date to the current date. And that was the hint I desperately needed.
</blockquote>
<p>
A brief snippet of code is included showing how he implemented the solution - MySQL commands and parameters defined in constants and called only when the last login time is less than "today".
</p>]]></description>
      <pubDate>Tue, 27 Mar 2012 11:06:05 -0500</pubDate>
    </item>
  </channel>
</rss>
