<?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>Fri, 25 Jul 2008 09:42:25 -0500</pubDate>
    <ttl>30</ttl>
    <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[Ken Guest's Blog: The Date_Holidays package, a pack of splitters and a pear tree]]></title>
      <guid>http://www.phpdeveloper.org/news/10155</guid>
      <link>http://www.phpdeveloper.org/news/10155</link>
      <description><![CDATA[<p>
In <a href="http://blogs.linux.ie/kenguest/2008/05/09/the-date_holidays-package-a-pack-of-splitters-and-a-pear-tree/">a new post</a> to his blog today, <i>Ken Guest</i> talks about the split that's been made in a PEAR package for calculating the dates of holidays (<a href="http://pear.php.net/package/Date_Holidays">Date_Holidays</a>) for localization reasons.
</p>
<blockquote>
We decided that this one package should be split into subpackages: one subpackage per region/country. Some advantages of this approach are that each driver / filter / subpackage gets it's own stability and version number - we wouldn't have to keep increasing the version number of Date_Holidays each time a new driver is added or when an existing driver gets a significant number of fixes.
</blockquote>
<p>
To replace your current version of the package (with all of the regions built in) with a new version that still contains all versions, uninstall the Date_Holidays and grab the "Date_Holidays#all" package. Otherwise, you can check out <a href="http://pear.php.net/package/Date_Holidays">the PEAR page</a> for the main package and see the subpackage list if you only need one for your area.
</p>]]></description>
      <pubDate>Fri, 09 May 2008 12:56:39 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[SpinDrop.us: Parsing a list of Key:Value pairs]]></title>
      <guid>http://www.phpdeveloper.org/news/7349</guid>
      <link>http://www.phpdeveloper.org/news/7349</link>
      <description><![CDATA[<p>
<i>Dave Dash</i> has <a href="http://spindrop.us/2007/02/24/parsing-a-list-of-kv-pairs/">posted a quick script</a> to help with an integration of openID into your application - well, really just to read the response back easily.
</p>
<blockquote>
I'm working on implementing <a href="http://openid.net/">openID</a> for <a href="http://reviewsby.us/">reviewsby.us</a> and for use in <a href="http://www.symfony-project.com/">symfony apps</a>. One thing I was having trouble with was parsing key value pairs, which is one of the requirements to reading responses. It's a fairly easy task, but [PHP][] offers so many ways to do this.
</blockquote>
<p>
He <a href="http://spindrop.us/2007/02/24/parsing-a-list-of-kv-pairs/">notes the spec</a> for how the results are returned and shares his code (based around a regular expression) that goes through the response and separates things out into key/value pairs automatically.
</p>]]></description>
      <pubDate>Tue, 27 Feb 2007 09:33:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[ThinkPHP Blog: Handling large files with(out) PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/5929</guid>
      <link>http://www.phpdeveloper.org/news/5929</link>
      <description><![CDATA[<p>
On the ThinkPHP blog today, there's a <a href="http://blog.thinkphp.de/archives/131-Handling-large-files-without-PHP.html">quick hint</a> about dealing with larger files both with and whithout PHP.
</p>
<blockquote>
As <a href="http://www.microsoft.com/billgates/default.asp">one man</a> <a href="http://groups.google.com/group/alt.folklore.computers/msg/99ce4b0555bf35f4">was quoted</a> "640K of memory should be enough for anybody" no one will need to access more than 2 GB data. What happens if you - just for scientific reasons of course - try to access larger files using your 32bit hardware and your favorite programming language PHP?
</blockquote>
<p>
They <a href="http://blog.thinkphp.de/archives/131-Handling-large-files-without-PHP.html">give the example</a> of opening a large 2 gig file with PHP and the resulting error that would pop up. They try a few differnt ways before getting down to more of a non-PHP PHP solution (yes, you read that right). They decided, instead, to create a script to work with the file chunked, using an exec() call to the unix split command to break it up.
</p>]]></description>
      <pubDate>Wed, 02 Aug 2006 05:47:06 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Byster.net: PHP5 Benchmarks]]></title>
      <guid>http://www.phpdeveloper.org/news/5408</guid>
      <link>http://www.phpdeveloper.org/news/5408</link>
      <description><![CDATA[<p>
On Byster.net today, there's <a href="http://byster.net/?page_id=48">this new post</a> detailing some benchmarks they've done with some of the functionality in PHP5.
</p>
<p>
Included in the list of tests were:
<ul>
<li>Reading an integer array
<li>Parsing variable names
<li>Splitting out text
<li>working with a random number generator.
</ul>
</p>
<p>
For <a href="http://byster.net/?page_id=48">each of the tests</a>, they have a few different methods of doing the same thing and the results (in milliseconds) plotted out in bar graphs. Some of the results are surprising, but most are expected (if you work with optimizing PHP much at all). It's a good amount of coverage of functionality, though - most aspects of everyday programming are here.
</p>]]></description>
      <pubDate>Sun, 21 May 2006 17:12:44 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Community News: Zend Announces Formal Split from PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/5084</guid>
      <link>http://www.phpdeveloper.org/news/5084</link>
      <description><![CDATA[<a href="http://www.zend.com">Zend</a> has issued a press release today announcing their split from the PHP group in order to pursue their own branch of the popular web development language.
<p>
<i>Andi Gutmans</i>, Co-founder and Vice President of Zend, is quoted as saying:
<quote>
<i>
It's about time we finally made the move. All of those people whining constantly about 'PHP is broken here - make it better' and 'Why can't you fix my favorite function so it works better?' Frankly, we at Zend are tired of it, and we're not gonna take it anymore.
</i>
</quote>
<p>
Neither <i>Zeev Suraski</i> or <i>Marc Andreessen</i> could be reached for comment on this branch, but sources say that the <a href="http://www.zend.com">entire company</a> is behind this move. Branching off to create their own "Zend PHP" allows them to integrate their recently released (preview version) of <a href="http://framework.zend.com">Framework</a> more closely and give it the power it needs to surpass the original PHP distribution.]]></description>
      <pubDate>Sat, 01 Apr 2006 06:46:27 -0600</pubDate>
    </item>
  </channel>
</rss>
