<?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, 25 May 2013 06:44:47 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[PHPClasses.org: Lately in PHP, Episode 28 - PHP 5.5 Release Date and Plans]]></title>
      <guid>http://www.phpdeveloper.org/news/18602</guid>
      <link>http://www.phpdeveloper.org/news/18602</link>
      <description><![CDATA[<p>
On the PHPClasses.org blog they've posted the latest "Lately In PHP" Podcast - Episode #28, "PHP 5.5 Release Date and Plans":
</p>
<blockquote>
PHP 5.5 release is already being planned. The release manager was picked, the new features are decided and the release date is estimated. This one of the main topics discussed by Manuel Lemos and Ernani Joppert in episode 28 of the Lately in PHP podcast. They also discussed the interpretation from VentureBeat that Zend is working on mobile version of PHP, using abstract symbol tables to optimize PHP further, and creating classes that provide APIs that are simpler for the users.
</blockquote>
<p>
You can listen to this latest episode either using <a href="http://www.phpclasses.org/blog/post/193-PHP-55-Release-Date-and-Plans--Lately-in-PHP-podcast-episode-28.html">the in-page player</a>, by <a href="http://www.phpclasses.org/blog/post/193/file/147/name/Lately-In-PHP-28.mp3">downloading the mp3</a> or by <a href="http://www.phpclasses.org/blog/category/podcast/post/latest.rss">subscribing to their feed</a>.
</p>]]></description>
      <pubDate>Mon, 15 Oct 2012 08:40:06 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Gonzalo Ayuso: Handling dates with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/18540</guid>
      <link>http://www.phpdeveloper.org/news/18540</link>
      <description><![CDATA[<p>
In <a href="http://gonzalo123.com/2012/10/01/handling-dates-with-php/">this new post</a> to his site <i>Gonzalo Ayuso</i> introduces you to one of the more powerful parts of the PHP language - the <a href="http://php.net/datetime">DateTime</a> object.
</p>
<blockquote>
I've seen a lot of newbies (and not newbies) having problems handling dates in PHP (and even with SQL and another languages). When I see someone having problems with dates, I always ask the same question. I type in a text editor "27/11/2012&#8243; and I ask him: What is it? If your answer is "This is a date" you should continue reading the post.
</blockquote>
<p>
He talks about how the DateTime functionality replaces (much more effectively) some of the older date handling methods in PHP. He includes a few examples comparing it to <a href="http://php.net/date">date</a> and showing how it can be used to compare dates. He includes a "Dummy" class he mocked up to show how you could work with DateTime to get/set formatted dates, set the format to use and get the current format. As always, he also provides tests for the code as well.
</p>
<p>
This is just the tip of the iceberg as to what DateTime can do, so I'd suggest checking out <a href="http://php.net/manual/book.datetime.php">the manual page</a> for it to see the full list of features.
</p>]]></description>
      <pubDate>Tue, 02 Oct 2012 08:41:09 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPMaster.com: Working with Dates and Times in PHP and MySQL]]></title>
      <guid>http://www.phpdeveloper.org/news/17608</guid>
      <link>http://www.phpdeveloper.org/news/17608</link>
      <description><![CDATA[<p>
On PHPMaster.com today there's a new tutorial by <i>Sean Hudgston</i> about <a href="http://phpmaster.com/working-with-dates-and-times">working with dates and times</a> via the PHP date functions and how they cooperate with dates/times from a MySQL database.
</p>
<blockquote>
When working in any programming language, dealing with dates and time is often a trivial and simple task. That is, until time zones have to be supported. Fortunately, PHP has one of the most potent set of date/time tools that help you deal with all sorts of time-related issues: Unix timestamps, formatting dates for human consumption, displaying times with time zones, the difference between now and the second Tuesday of next month, etc. In this article I'll introduce you to the basics of PHP's time functions (time(), mktime(), and date()) and their object-oriented counterparts, and then take a look at MySQL dates and show you how to make them play nicely with PHP.
</blockquote>
<p>
His examples include how to get the current Unix time, formatting dates/times, making timestamps and working with the more powerful DateTime objects. On the MySQL front, he shows the result of a normal date select, one using the "unix_timestamp" function and how to shift the result based on the user's timezone.
</p>]]></description>
      <pubDate>Thu, 01 Mar 2012 08:51:47 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Brian Moon's Blog: Errors when adding/subtracing dates using seconds]]></title>
      <guid>http://www.phpdeveloper.org/news/17406</guid>
      <link>http://www.phpdeveloper.org/news/17406</link>
      <description><![CDATA[<p>
<i>Brian Moon</i> has <a href="http://brian.moonspot.net/errors-adding-subtracting-dates">a reminder about date handling</a> in PHP - days are not always 86400 seconds long, sometimes there's "leap seconds" included too. Thankfully, there's easy ways around it:
</p>
<blockquote>
The problem with this is that it assume that there are only 86400 seconds in every day. There are in fact not. On days when the clocks change for daylight savings time, there are either 1 hour more than that or 1 hour less than that. In addition, there are also <a href="http://en.wikipedia.org/wiki/Leap_second">leap seconds</a> put into our time system to keep us in line with the sun. There is one this year, 2012, on June 30th in fact. Since they don't happen with the regularity that daylight savings time does, it may be easy to forget those. Luckily, for this problem, the solution is the same.
</blockquote>
<p>
His first solution involves letting <a href="http://php.net/strtotime">strtotime</a> do the work for him, internally calculating the leap seconds or any other issue that might come up. As an alternate solution, he also mentions "doing your math at noon" - this gives you enough leeway to make the offset leap seconds could cause a much smaller risk.
</p>]]></description>
      <pubDate>Tue, 17 Jan 2012 11:19:22 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPClasses.org: Lately in PHP podcast episode 17 - PHP 5.4 & PHP-GTK in the Browser]]></title>
      <guid>http://www.phpdeveloper.org/news/17063</guid>
      <link>http://www.phpdeveloper.org/news/17063</link>
      <description><![CDATA[<p>
On PHPClasses.org today they've released their <a href="http://www.phpclasses.org/blog/post/163-PHP-54-Release-Date-PHPGTK-Apps-Running-on-a-Web-Browser--Lately-in-PHP-podcast-episode-17.html">latest episode</a> of their "Lately In PHP" podcast - episode #17. In this new episode <i>Manuel</i> and <i>Ernani</i> talk about PHP-GTK in a web browser and the proposed PHP 5.4 release date.
</p>
<blockquote>
PHP 5.4 beta 2 was just released, so the final version of 5.4.0 is coming soon. Many PHP Developers want to know when it will be the final PHP 5.4 release date. Manuel Lemos and Ernani Joppert talk about this and other interesting PHP related topics in episode 17 of the Lately in PHP podcast.
</blockquote>
<p>
You can listen to this latest episode either through the <a href="http://www.phpclasses.org/blog/post/163-PHP-54-Release-Date-PHPGTK-Apps-Running-on-a-Web-Browser--Lately-in-PHP-podcast-episode-17.html">in-page player</a>, by <a href="http://www.phpclasses.org/blog/post/163/file/95/name/Lately-In-PHP-17.mp3">downloading the full mp3</a> or by <a href="http://www.phpclasses.org/blog/category/podcast/post/latest.rss">subscribing to their feed</a> to get this and past episodes (including ones about <a href="http://modx.com/">MODX</a> and <a href="https://phpfog.com/">PHPFog</a>).
</p>]]></description>
      <pubDate>Mon, 31 Oct 2011 12:50:53 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[WebInOne.net: Date validation for CodeIgniter 2]]></title>
      <guid>http://www.phpdeveloper.org/news/16966</guid>
      <link>http://www.phpdeveloper.org/news/16966</link>
      <description><![CDATA[<p>
On the WebInOne blog there's a post about doing some <a href="http://www.webinone.net/code-snippet/date-validation-for-codeigniter-2/">date validation in CodeIgniter 2</a> forms using the "set_validation" method.
</p>
<blockquote>
I wrote a tutorial <a href="http://www.webinone.net/tutorials/user-friendly-date-with-codeigniter-and-mysql/">here</a> about the CI date. At that post I used the HTML &lt;select> for the input of date. Sometime our client can want to use text box for the date input. We need the validation for this date. I have found this code from <a href="http://www.adcworks.com/blog/2009/04/code-igniter-date-validation/">here</a>. It is for CI 1.7.* and PHP 5.2.*. So I change some code for the CI 2.0.* and PHP 5.3.*.
</blockquote>
<p>
There's some code snippets included in the post showing how to use it in the form (HTML), setting the validation on the form object (for US and UK validation) and the actual code of the updated custom Validation class.
</p>]]></description>
      <pubDate>Fri, 07 Oct 2011 11:57:21 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Slawek Lukasiewicz's Blog: Working with date and time in object oriented way]]></title>
      <guid>http://www.phpdeveloper.org/news/16451</guid>
      <link>http://www.phpdeveloper.org/news/16451</link>
      <description><![CDATA[<p>
<i>Slawek Lukasiewicz</i> has a new post today about <a href="http://www.leftjoin.net/2011/06/working-with-date-and-time-in-object-oriented-way/">working with dates and times in PHP</a> on a more object-oriented fashion than in the more traditionally procedural way of just calling PHP date/time functions on the string values.
</p>
<blockquote>
Date and time manipulation in PHP is mostly connected with functions like: date, time or strtotime. They can be sufficient, but if we want to deal with dates like with objects - we can use DateTime class. DateTime class is not only straightforward wrapper for standard functions, it has a lot of additional features - for example timezones.
</blockquote>
<p>
He shows how to use the <a href="http://php.net/datetime">DateTime</a> functionality to return an object you can call several different methods on. He gives examples of the formatting call, comparing one DateTime object to another, how to update the date after the object's created, calculating the difference between two dates and iterating through a certain time period.
</p>]]></description>
      <pubDate>Fri, 10 Jun 2011 08:13:14 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[XPertDeveloper.com: Is Your PHP Application Affected by the Y2K38?]]></title>
      <guid>http://www.phpdeveloper.org/news/16341</guid>
      <link>http://www.phpdeveloper.org/news/16341</link>
      <description><![CDATA[<p>
On the XpertDeveloper.com site there's a post reminding you of an date could cause all sorts of problems with your PHP application - <a href="http://www.xpertdeveloper.com/2010/08/is-your-php-application-affected-by-the-y2k38/">the effects of the Y2K38 bug</a>.
</p>
<blockquote>
<a href="http://en.wikipedia.org/wiki/Year_2038_problem">Y2K38</a>, or the Unix Millennium Bug, affects PHP and many other languages and systems which use a signed 32-bit integer to signify dates as the number of seconds since 00:00:00 UTC on 1 January 1970. The furthest date which can be stored is 03:14:07 UTC on 19 January 2038. Beyond that, the left-most bit is set and the integer becomes a negative decimal number or a time prior to the epoch.
</blockquote>
<p>
If you're worried about your application's support for date and time handling, there's a pretty simple fix - replace your current handling with the <a href="http://php.net/datetime">DateTime</a> functionality. This handles them correctly.
</p>]]></description>
      <pubDate>Mon, 16 May 2011 09:22:18 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[James Cohen's Blog: Working with Date and Time in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/16292</guid>
      <link>http://www.phpdeveloper.org/news/16292</link>
      <description><![CDATA[<p>
<i>James Cohen</i> has <a href="http://webmonkeyuk.wordpress.com/2011/05/04/working-with-date-and-time-in-php/">a new post to his blog</a> today looking at some of the built-in functionality that PHP has to work with dates and times including simple things like <a href="http://php.net/strtotime">strtotime</a> and the <a href="http://php.net/datetime">DateTime</a> feature.
</p>
<blockquote>
A lot of people ask questions relating to date and time in PHP. Here are some answers to the most commonly asked questions and common mistakes.
</blockquote>
<p>
He covers the differences between working with dates in strtotime, worrying about timezone settings and compares the strtotime/DateTime methods for formatting and returning dates, modifying dates, converting between timezones as well as finding the difference between two timezones. 
</p>]]></description>
      <pubDate>Wed, 04 May 2011 08:59:23 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Rob Allen's' Blog: A Zend Framwork compound form element for dates]]></title>
      <guid>http://www.phpdeveloper.org/news/16075</guid>
      <link>http://www.phpdeveloper.org/news/16075</link>
      <description><![CDATA[<p>
In a new post to his blog today <i>Rob Allen</i> shows you how to create <a href="http://akrabat.com/zend-framework/a-zend-framwork-compount-form-element-for-dates/">compound form element handling</a> in a Zend Framework application thanks to some custom work with Zend_Form and Zend_View extensions.
</p>
<blockquote>
A little bit of googling found this site <a href="http://codecaine.co.za/posts/compound-elements-with-zend-form">http://codecaine.co.za/posts/compound-elements-with-zend-form</a> which has not unfortunately disappeared, so the code in this article owes a lot of the author of that article. It turns out to be remarkably simple to create a single Zend Form element that is rendered as multiple form elements. We create an element object and a view helper object and we're done. 
</blockquote>
<p>
He shows how to create a custom form date helper that extends the base XHTML to create the isValid/getValue methods for handling the complex date input. There's also the code for the view that creates the <a href="http://akrabat.com/wp-content/uploads/2011-03-Screen-shot-2011-03-08-at-20.45.03.png">custom date input</a> and repopulates the content if there's a need.
</p>]]></description>
      <pubDate>Mon, 21 Mar 2011 12:23:08 -0500</pubDate>
    </item>
  </channel>
</rss>
