<?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>Wed, 19 Jun 2013 03:49:38 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Rob Allen's Blog: Validating dates]]></title>
      <guid>http://www.phpdeveloper.org/news/15405</guid>
      <link>http://www.phpdeveloper.org/news/15405</link>
      <description><![CDATA[<p>
In a new Zend Framework related post to his blog today <i>Rob Allen</i> takes a look at <a href="http://akrabat.com/zend-framework/validating-dates/">a different operating mode he found with Zend_Date</a> changing how it handles format specifiers.
</p>
<blockquote>
I discovered recently that Zend Framework 1's Zend_Date has two operating modes when it comes to format specifiers: iso and php, where iso is the default. When using Zend_Validate_Date in forms, I like to use the php format specifiers as they are what I'm used to and so can easily know what they mean when reviewing code that I wrote months ago.
</blockquote>
<p>
His example code shows how you can use the standard <a href="http://php.net/date">date</a> formatting strings in a Zend_Form validator (the "php" format) and an example using the Zend_Date::MONTH or Zend_Date::YEAR identifiers (the "iso" format). He also shows how he met two other requirements - validation for empty and a consistent format on the date validation ("Y-m-d").
</p>]]></description>
      <pubDate>Tue, 09 Nov 2010 12:11:12 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[PHP-GTK Community Site: MkDevDVD (DVD Manager for Linux)]]></title>
      <guid>http://www.phpdeveloper.org/news/8243</guid>
      <link>http://www.phpdeveloper.org/news/8243</link>
      <description><![CDATA[<p>
The PHP-GTK Community Site has <a href="http://www.php-gtk.eu/apps/mkdevdvd">posted about</a> a quick little application today - MkDevDVD - a DVD manager for Linux.
</p>
<blockquote>
MkDevDVD is a /dev/dvd manager for Linux, which in itself does not sound too exciting. It allows you to quickly switch /dev/dvd between a symbolic link to your CDROM device, or mount a DVD ISO so that media players like Xine and Mplayer work correctly when looking up your DVD.
</blockquote>
<p>
<a href="http://www.opsat.net/user/bob/projects/mkdevdvd">The application</a> is currently in release 1.0 and can be downloaded directly <a href="http://bobmajdakjr.googlecode.com/files/mkdevdvd-1.0.tar.bz2">here</a> or you an get more information about it and how to install it from <a href="http://www.opsat.net/user/bob/projects/mkdevdvd">the project's homepage</a>.
</p>]]></description>
      <pubDate>Fri, 13 Jul 2007 13:49:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Derick Rethans' Blog: Calculating start and end dates of a week]]></title>
      <guid>http://www.phpdeveloper.org/news/6724</guid>
      <link>http://www.phpdeveloper.org/news/6724</link>
      <description><![CDATA[<p>
<i>Derick Rethans</i> has posted a <a href="http://derickrethans.nl/calculating_start_and_end_dates_of_a_week.php">quick tip</a> to his blog today:
</p>
<blockquote>
A friend asked "How do I calculate start (monday) and end (sunday) dates from a given week number for a specified year?" Instead of having to come up with your own algorithm you can simply do the following in PHP 5.1 and higher.
</blockquote>
<p>
<a href="http://derickrethans.nl/calculating_start_and_end_dates_of_a_week.php">The (technically) three-line code</a> uses ISO format for the date to tell you which day is the starting day of that week and which is the end. He only explains this format just a bit, so if you want more information, check out the <a href="http://us2.php.net/manual/en/function.strtotime.php">strtotime</a> function page.
</p>]]></description>
      <pubDate>Thu, 16 Nov 2006 15:13:37 -0600</pubDate>
    </item>
  </channel>
</rss>
