<?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>Sun, 07 Sep 2008 16:09:56 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Symfony Blog: YAML in symfony 1.1]]></title>
      <guid>http://www.phpdeveloper.org/news/10442</guid>
      <link>http://www.phpdeveloper.org/news/10442</link>
      <description><![CDATA[<p>
<a href="http://www.symfony-project.org/blog/2008/06/19/yaml-in-symfony-1-1">This new post</a> on the Symfony blog today looks at using the framework's built-in support for the YAML format. They include a few examples of the code to make the files and how to use them.
</p>
<blockquote>
Here is a short tutorial about my discovery of the new YAML parsing library that comes with symfony 1.1. As you may know, YAML files are a place symfony developers spend time writing configuration, it is very important they have a good tool to manipulate data and debug files.
</blockquote>
<p>
They include code showing how to pull in a sample file, access the properties inside of it and how to take a multi-dimensional PHP array and push it back out (automagically) into a new YAML formatted file.
</p>]]></description>
      <pubDate>Thu, 19 Jun 2008 11:18:38 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[ThinkPHP Blog: Put out the age of a date in words]]></title>
      <guid>http://www.phpdeveloper.org/news/9957</guid>
      <link>http://www.phpdeveloper.org/news/9957</link>
      <description><![CDATA[<p>
On the ThinkPHP blog today, <i>Annika Rabea</i> <a href="http://blog.thinkphp.de/archives/317-Put-out-the-age-of-a-date-in-words.html">shares a method</a> for outputting dates in words rather than in the usual numbers most applications use.
</p>
<blockquote>
Recently, I have to output the age of a date in words and didn't have a framework to work with. The first steps were to parse the given date into an array and create a timestamp with the individual parts. The difference between the timestamp of now and the created timestamp yielded the age in seconds. The result can be used to compare with seconds of a day, week, etc. 
</blockquote>
<p>
The code snippet <a href="http://blog.thinkphp.de/archives/317-Put-out-the-age-of-a-date-in-words.html">in the post</a> outputs the difference between two timestamps (then and now) it a bit more friendly way (ex. 4 months, 2 weeks, 2 days).
</p>]]></description>
      <pubDate>Fri, 11 Apr 2008 10:37:53 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Derick Rethans' Blog: British date format parsing]]></title>
      <guid>http://www.phpdeveloper.org/news/9734</guid>
      <link>http://www.phpdeveloper.org/news/9734</link>
      <description><![CDATA[<p>
<i>Derick Rethans</i> has <z href="http://derickrethans.nl/british_date_format_parsing.php">posted about a new function</a> he's whipped up for PHP's date/time functionality to handle the differences between US formatted dates and the British date formats - date_create_from_format.
</p>
<blockquote>
From PHP 5.3 the new date_create_from_format() function and the DateTime::createFromFormat() factory method are available. As first argument they accept the expected format, and as second argument the string to parse.
</blockquote>
<p>
He <a href="http://derickrethans.nl/british_date_format_parsing.php">includes two examples</a> - one showing it being used to parse a British date string and the other to show off the date_get_last_errors function that can be useful for debugging.
</p>]]></description>
      <pubDate>Mon, 03 Mar 2008 20:45:49 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Richard Lord's Blog: If you want to create AVM2 swfs from PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/9405</guid>
      <link>http://www.phpdeveloper.org/news/9405</link>
      <description><![CDATA[<p>
<i>Richard Lord</i> has a <a href="http://www.bigroom.co.uk/blog/if-you-want-to-create-avm2-swfs-from-php">quick post</a> about a handy library that can help with the creation of AVM2 swf files from inside of PHP.
</p>
<blockquote>
It creates the number formats used in AVM2 swfs, <a href="http://www.adobe.com/devnet/actionscript/articles/avm2overview.pdf">as described here</a>. I created these functions for the <a href="http://swxformat.org/">SWX project</a> and am releasing the code under the MIT license so it can be used in other projects too.
</blockquote>
<p>
You can <a href="http://www.bigroom.co.uk/files/AVM2_Numbers.zip">download the file</a> directly from his blog. You can find out more about the native data format (SWX) for Flash on the <a href="http://swxformat.org/">SWX Format</a> website.
</p>]]></description>
      <pubDate>Fri, 11 Jan 2008 11:11:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Kore Nordmann's Blog: Published article "Image creation with PHP"]]></title>
      <guid>http://www.phpdeveloper.org/news/9218</guid>
      <link>http://www.phpdeveloper.org/news/9218</link>
      <description><![CDATA[<p>
<i>Kore Nordmann</i> has <a href="http://kore-nordmann.de/blog/published_article_image_creation_with_php.html">posted a new article series</a> (to the "Articles" section of his site) with six different pieces talking about different aspects of image creation with PHP:
</p>
<ul>
<li><a href="http://kore-nordmann.de/blog/image_creation_with_php_tools.html"> Image creation with PHP - Image Tools</a>
<li><a href="http://kore-nordmann.de/blog/image_creation_with_php_texts.html"> Image creation with PHP - Text rendering</a>
<li><a href="http://kore-nordmann.de/blog/image_creation_with_php_bitmaps.html"> Image creation with PHP - Integrating bitmaps</a>
<li><a href="http://kore-nordmann.de/blog/image_creation_with_php_gradients.html"> Image creation with PHP - Gradient rendering</a>
<li><a href="http://kore-nordmann.de/blog/image_creation_with_php_shapes.html"> Image creation with PHP - A first shape</a>
<li><a href="http://kore-nordmann.de/blog/image_creation_with_php_formats.html"> Image creation with PHP - Formats & Libraries</a>
</ul>
<p>
Each of them can be read separately, but they're all part of a series and make more sense when read together.
</p>]]></description>
      <pubDate>Tue, 11 Dec 2007 11:11:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Photogapple.co.uk: time_since]]></title>
      <guid>http://www.phpdeveloper.org/news/7670</guid>
      <link>http://www.phpdeveloper.org/news/7670</link>
      <description><![CDATA[<p>
On the Photogapple.co.uk blog today, there's <a href="http://www.photogabble.co.uk/2007/04/20/time_since/">some handy code</a> that can definitely be useful when working with dates in PHP - a function to find the difference between the current time and a timestamp you give it.
</p>
<blockquote>
I found it incredibly difficult to find any form of time_since function in php so to save anyone else the trouble to hunting through hundreds of useless websites here is the function you may want to use, written by <a href="http://notes.natbat.net/2007/01/27/timesince/">Natalie Downe</a> (you don't want to know how long it took to hunt it down).
</blockquote>
<p>
The function takes in the value, subtracts the two timestamps and loops through an array of "time chunks" to each other to show nicely formatted output of how long the difference it.
</p>]]></description>
      <pubDate>Fri, 20 Apr 2007 11:07:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Alexander Netkachev's Blog: Syndicate content with Zend Framework Zend_Feed classes]]></title>
      <guid>http://www.phpdeveloper.org/news/7542</guid>
      <link>http://www.phpdeveloper.org/news/7542</link>
      <description><![CDATA[<p>
<i>Alexander Netkachev</i> has <a href="http://www.alexatnet.com/blog/2/2007/04/01/syndicate-content-with-zend-framework-zend_feed-classes">posted a quick tutorial</a> today to his blog about how to use the Zend Framework (specifically the Zend_Feed component) to create an XML feed for your site.
</p>
<blockquote>
This article explains basics of content syndications and demonstrates how to use Zend Framework Zend_Feed classes for consuming a news feed of your site.
</blockquote>
<p>
His format of choice is Atom, slightly different from the RSS most sites use. He includes a sample document to show some of the differences (assuming you know the RSS format, of course) - both complex and simple versions. Also included is a UML layout of the Zend_Feed class, showing all of the methods and properties therein. 
</p>
<p>
With the groundwork laid, he starts on the sample application - creating an Atom feed from a PHP array of data. He grabs the information from the database and pulls it into the controller where it's parsed and massaged into the array format the output needs. Then it's just a matter of passing it to the view and voila - an Atom feed worthy of consumption.
</p>]]></description>
      <pubDate>Mon, 02 Apr 2007 07:44:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Zend Developer Zone: The Storage Medium]]></title>
      <guid>http://www.phpdeveloper.org/news/6819</guid>
      <link>http://www.phpdeveloper.org/news/6819</link>
      <description><![CDATA[<p>
The Zend Developer Zone is continuing on from <a href="http://www.phpdeveloper.org/news/6744">previous</a> <a href="http://www.phpdeveloper.org/news/6775">parts</a> of a series in <A href="http://devzone.zend.com/node/view/id/1326">this new tutorial</a> posted today - part three of the "Ajax Chat Tutorial" tutorial series.
</p>
<blockquote>
As our chat application gathers pace we return to the server side of the application. At this point we have setup the Zend Framework with an IndexController class to handle server requests. When we receive a new chat message from the user, we will need to store it. For this tutorial I've selected a file based solution using XML.
</blockquote>
<p>
They start with a look at the storage method - XML on the backend, pushed into a MySQL database (along with the message format). There's a <a href="http://devzone.zend.com/node/view/id/1326">quick refresher</a> on SimpleXML before they show how to integrate this storage method into the current system.
</p>]]></description>
      <pubDate>Mon, 04 Dec 2006 14:48:00 -0600</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>
    <item>
      <title><![CDATA[Chris Shiflett's Blog: Formatting and Highlighting PHP Code Listings]]></title>
      <guid>http://www.phpdeveloper.org/news/6589</guid>
      <link>http://www.phpdeveloper.org/news/6589</link>
      <description><![CDATA[<p>
In his continuing effort to redesign his blog, <a href="http://www.shiflett.org">Shiflett.org</a>, he's been working on one of the things that really makes a blog useful - the commenting system. Specifically, he wants site visitors to be able to add their own code listings to the comments they post. He gives more detail in <a href="http://shiflett.org/archive/275">this new post</a>.
</p>
<blockquote>
I've been playing with this tonight. Feel free to follow along as I go. The first thing you want to do is create an ordered list from the code you want to format ($code in these examples).
</blockquote>
<p>
He gives an example of a listing using his system and explains how it all works. It's a mixture of:
<ul>
<li>PHP for parsing the data inside the 'code' tags
<li>CSS to correctly style the information, whitespace and all
<li>Some ini settings to set parameters for...
<li>...the use of highlight string on the PHP code contents
</ul>
A little str_replace magic later and you have list items styled as code blocks on your page. Check out <a href="http://shiflett.org/code/highlight.php">his demo</a> for an example.
</p>
]]></description>
      <pubDate>Fri, 27 Oct 2006 07:19:00 -0500</pubDate>
    </item>
  </channel>
</rss>
