<?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, 06 Jul 2008 16:58:23 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Brian DeShong's Blog: Small news that's big to me: my PHP Testfest submissions made it into 5_3!]]></title>
      <guid>http://www.phpdeveloper.org/news/10410</guid>
      <link>http://www.phpdeveloper.org/news/10410</link>
      <description><![CDATA[<p>
Congrats to <i>Brian DeShong</i> for having his submissions from this year's TestFest be <a href="http://www.deshong.net/?p=76">included in the next release</a> of PHP, version 5.3's build.
</p>
<blockquote>
Someday I'll look back on this post and think it's super lame, but my recent submission of two tests for PHP's <a href="http://php.net/putenv">putenv()</a> function made it into PHP_5_3! I've officially made a contribution it's a red letter day, folks. Without <a href="http://atlantaphp.org/">Atlanta PHP</a> and <a href="http://testfest.php.net/">PHP's Testfest</a>, none of this would have been possible.
</blockquote>
<p>
His tests ran with putenv() and the safe_mode_allowed_env_vars/safe_mode_protected_env_vars settings in use. You can see the inclusion in <a href="http://news.php.net/php.cvs/50412">this commit message</a> (by <i>Lars Strojny</i>).
</p>]]></description>
      <pubDate>Fri, 13 Jun 2008 10:25:12 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Alex Netkachov's Blog: BAT file tips]]></title>
      <guid>http://www.phpdeveloper.org/news/10355</guid>
      <link>http://www.phpdeveloper.org/news/10355</link>
      <description><![CDATA[<p>
<i>Alex Netkachov</i> has updated <a href="http://www.alexatnet.com/node/22">a post he made</a> a while back (in 2006 in fact) about making Windows batch files (.BAT) that would do the same thing as some of the functions in PHP. He's added two more to it today - one for string replace and another for splitting a string.
</p>
<p>
The <a href="http://www.alexatnet.com/node/22#string_replace">replace</a> is as simple three line call, much the same as PHP's and the <a href="http://www.alexatnet.com/node/22#string_split">split call</a>, while a bit more complex, is still pretty straight forward (it just needs a few extra variables).
</p>
<p>
Other methods in <a href="http://www.alexatnet.com/node/22">the post</a> include a "switch" method, defining a procedure and updating variable by its name.
</p>]]></description>
      <pubDate>Fri, 06 Jun 2008 07:58:08 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Brian Moon's Blog: Short Array Syntax for PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/10296</guid>
      <link>http://www.phpdeveloper.org/news/10296</link>
      <description><![CDATA[<p>
There's been some talk floating around about a proposed additional syntax for creating arrays in PHP. <i>Brian Moon</i> <a href="http://brian.moonspot.net/2008/05/28/short-array-syntax-for-php/">sums it up nicely</a> in a new post to his blog.
</p>
<blockquote>
So, I was asked in IRC today about the proposed short array syntax for PHP. For those that don't know, I mean the same syntax that other languages (javascript, perl, python, ruby) all have. [...] It just feels like a good addition to the language. It is common among web languages and therefore users coming into PHP from other languages may find it more comfortable.
</blockquote>
<p>
He <a href="http://brian.moonspot.net/2008/05/28/short-array-syntax-for-php/">compares</a> it with other data type creation in PHP (you don't call int() to make an integer, so why call array() to make an array). However, according to <A href="http://marc.info/?l=php-internals&m=121151618528857&w=2">a post</a> from the internals mailing list, we might not be seeing this any time soon.
</p>]]></description>
      <pubDate>Thu, 29 May 2008 11:13:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Developer Tutorials Blog: PHP array_walk(): Run an array through a function]]></title>
      <guid>http://www.phpdeveloper.org/news/10020</guid>
      <link>http://www.phpdeveloper.org/news/10020</link>
      <description><![CDATA[<p>
The Developer Tutorials blog has a <a href="http://www.developertutorials.com/blog/php/php-functions/php-array_walk-run-an-array-through-a-function-128/">quick example</a> of how to use the array_walk function to maneuver through the array of your choosing and applying a callback method to each of its elements.
</p>
<blockquote>
It’s a common sight: taking an array and running (well, walking) its elements through a particular function. Luckily, PHP provides a simple yet powerful function to overcome this: array_walk().
</blockquote>
<p>
They include an example, giving a sample "some_function" the array_walk method uses when it's called, replacing a foreach (or other type of loop). Plus you can specify an object with the callback to run it against a method inside a class too.
</p>]]></description>
      <pubDate>Wed, 23 Apr 2008 08:47:09 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: Defining a Custom Function for File Uploaders with PHP 5]]></title>
      <guid>http://www.phpdeveloper.org/news/9937</guid>
      <link>http://www.phpdeveloper.org/news/9937</link>
      <description><![CDATA[<p>
On DevShed today, there's <a href="http://www.devshed.com/c/a/PHP/Defining-a-Custom-Function-for-File-Uploaders-with-PHP-5/">a new article</a> in their series looking at creating custom functions to handle file uploads in your application:
</p>
<blockquote>
I'm going to show you how to wrap the file uploading application built in the previous article of the series into a single custom PHP function. This will turn it into a more maintainable and reusable piece of code.
</blockquote>
<p>
They <a href="http://www.devshed.com/c/a/PHP/Defining-a-Custom-Function-for-File-Uploaders-with-PHP-5/1/">review the source</a> built in previous parts of the series and show how to update it with a uploadFile() function that takes all of the logic from before (exceptions and all) and wraps it up into a nice little package that can be reused anywhere.
</p>]]></description>
      <pubDate>Wed, 09 Apr 2008 09:48:48 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Eirik Hoem's Blog: Dying with grace - PHP's register_shutdown_function]]></title>
      <guid>http://www.phpdeveloper.org/news/9808</guid>
      <link>http://www.phpdeveloper.org/news/9808</link>
      <description><![CDATA[<p>
<i>Eirik Hoem</i> has <a href="http://eirikhoem.wordpress.com/2008/03/15/dying-with-grace-phps-register_shutdown_function/">posted a new look</a> at a function that can be amazingly helpful when you have a script with issues that needs a little extra help cleaning up after itself - <a href="http://no2.php.net/register_shutdown_function">register_shutdown_function</a>.
</p>
<blockquote>
Scripts tend to die, and that's not usually nice. We do not want to show the user a fatal error nor a blank page (display errors off) . PHP has a function called <a href="http://no2.php.net/register_shutdown_function">register_shutdown_function</a> which lets us set up a function which is called at execution shutdown. What this means is that our function will be executed when our script is done executing / dying and PHP execution is about to shut down.
</blockquote>
<p>
He <a href="http://eirikhoem.wordpress.com/2008/03/15/dying-with-grace-phps-register_shutdown_function/">suggests</a> various things that can be done with the functionality, including checking for successful script execution (via a false variable that can be checked for success).
</p>]]></description>
      <pubDate>Mon, 17 Mar 2008 12:02:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Developer Tutorials Blog: Calculating date difference more precisely in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/9774</guid>
      <link>http://www.phpdeveloper.org/news/9774</link>
      <description><![CDATA[<p>
<i>Hasin Hayder</i> has posted <a href="http://www.developertutorials.com/blog/php/calculating-date-difference-more-precisely-in-php-71/">his own response</a> to a recent "relative time" article (showing users things like "received 2 days and 3 hours ago") with a more precise method for doing something similar:
</p>
<blockquote>
This function is production ready and you can use it in any of your application which mainly works with these date difference. I have found it somewhere in web, just forgot the source. Thanks to the unknown author of this excellent function.
</blockquote>
<p>
The rest of <a href="http://www.developertutorials.com/blog/php/calculating-date-difference-more-precisely-in-php-71/">the post</a> is the function itself that takes in the interval string (formatting), the start date, end date and whether to use timestamps or not.
</p>]]></description>
      <pubDate>Tue, 11 Mar 2008 08:40:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Community News: Zipline Interactive Updates PHP Function Finder (Windows Gadget)]]></title>
      <guid>http://www.phpdeveloper.org/news/9646</guid>
      <link>http://www.phpdeveloper.org/news/9646</link>
      <description><![CDATA[<p>
<i>Ryan</i> from Zipline Interactive submitted an update about the latest version of their "Function Finder" they've created for Windows (and is mentioned <a href="http://us2.php.net/sidebars.php">here</a>):
</p>
<blockquote>
Zipline Interactive has released the second version of their free PHP Function Finder Gadget for Windows Vista.  The tool can be downloaded directly from the Zipline Interactive website at: <a href="http://www.gozipline.com/23,phpfunctionfindergadget">http://www.gozipline.com/23,phpfunctionfindergadget</a>. You can also download the latest version by going to the PHP.net website sidebar page located at: <a href="http://www.php.net/sidebars">http://www.php.net/sidebars</a>.
</blockquote>
<p>
This new version is quite a bit smaller (physically) than its predecessors and is rectangular so it fits a bit better alongside other gadgets. They also fixed a bug that was causing a blink to happen when the search was performed.
</p>
<p>
Grab this latest <a href="http://www.gozipline.com/23,phpfunctionfindergadget">download here</a>.
</p>]]></description>
      <pubDate>Fri, 15 Feb 2008 12:59:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: Defining Some Custom PHP Functions with Yahoo Web Services]]></title>
      <guid>http://www.phpdeveloper.org/news/9570</guid>
      <link>http://www.phpdeveloper.org/news/9570</link>
      <description><![CDATA[<p>
DevShed continues their series looking at connecting a PHP5 script to the powerful Yahoo! search backend with <a href="http://www.devshed.com/c/a/PHP/Defining-Some-Custom-PHP-Functions-with-Yahoo-Web-Services/">part four</a> of the series today. This part focuses on reworking some of the previous examples to make them more modular using custom defined functions.
</p>
<blockquote>
Logically, these examples can be really useful for learning the basic concepts surrounding the use of these search services, but undoubtedly, it's necessary to modify and improve their source code to make it more compact and completely reusable.
</blockquote>
<p>
They start the overhaul with the <a href="http://www.devshed.com/c/a/PHP/Defining-Some-Custom-PHP-Functions-with-Yahoo-Web-Services/1/">web search</a> (complete with example results) then push on to the <a href="http://www.devshed.com/c/a/PHP/Defining-Some-Custom-PHP-Functions-with-Yahoo-Web-Services/2/">video</a> and <a href="http://www.devshed.com/c/a/PHP/Defining-Some-Custom-PHP-Functions-with-Yahoo-Web-Services/3/">image</a> searches and work them over the same way.
</p>]]></description>
      <pubDate>Tue, 05 Feb 2008 11:18:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Phil Thompson's Blog: 7 PHP functions that saved my life]]></title>
      <guid>http://www.phpdeveloper.org/news/9470</guid>
      <link>http://www.phpdeveloper.org/news/9470</link>
      <description><![CDATA[<p>
On his blog, <i>Phil Thompson</i> lists <a href="http://imgiseverything.co.uk/2008/01/18/7-php-functions-that-saved-my-life/">seven PHP functions</a> that "saved his life" when developing his apps:
</p>
<blockquote>
From time to time, I've struggled with minor pieces of coding for what seems like an age and then I've discovered PHP has a ready-made function whose express purpose seems to be to fix my exact problem. Today, I name and honour those PHP functions which saved my life, my career and my sanity.
</blockquote>
<p>Functions that made the cut include:</p>
<ul>
<li><a href="http://php.net/number_format">number_format</a>
<li><a href="http://php.net/array_values">array_values</a>
<li><a href="http://php.net/isset">isset()</a>
<li><a href="http://php.net/array_diff">array_diff()</a>
</ul>
<p>
He has his own reasons for each - all of them being handy little functions that fill a specific niche in PHP's vast array of abilities.
</p>]]></description>
      <pubDate>Tue, 22 Jan 2008 08:12:50 -0600</pubDate>
    </item>
  </channel>
</rss>
