<?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>Thu, 23 May 2013 17:03:43 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Stefan Koopmanschap's Blog: PHP Hidden Gem: similar_text()]]></title>
      <guid>http://www.phpdeveloper.org/news/12859</guid>
      <link>http://www.phpdeveloper.org/news/12859</link>
      <description><![CDATA[<p>
<i>Stefan Koopmanschap</i> has written about <a href="http://www.leftontheweb.com/message/PHP_Hidden_Gem_similar_text">a hidden gem</a> he discovered in PHP to help locate blocks of text that seem similar from one or more sources - <a href="http://php.net/similar_text">similar_text</a>.
</p>
<blockquote>
I am working on a hobby project where I aggregate feeds from several different sources. With the blogs I work it right now, it often happens that an author posts the same post to a few different sites. However, because of site formats and sometimes also quick edits an author makes on one site but not on the author, the article contents are usually not identical strings. So I needed something that would help me figure out whether or not two strings are nearly identical.
</blockquote>
<p>
After Googling around and finding things like the <a href="http://nl2.php.net/manual/en/book.xdiff.php">xdiff extension</a> and <a href="http://www.php.net/soundex">soundex</a>, he discovered the two functions he needed - <a href="http://nl2.php.net/manual/en/function.levenshtein.php">levenshtein</a> and <a href="http://nl2.php.net/manual/en/function.similar-text.php">similar_text</a>.
</p>
<blockquote>
I am still trying to figure out which percentage will catch the duplicates but not catch too many posts which are only similar but not actually duplicates, but with the above 75% I seem to catch quite a few duplicates so far.
</blockquote>]]></description>
      <pubDate>Mon, 13 Jul 2009 09:37:50 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Johannes Schluter's Blog: A hidden gem in PHP 5.3: fileinfo]]></title>
      <guid>http://www.phpdeveloper.org/news/11586</guid>
      <link>http://www.phpdeveloper.org/news/11586</link>
      <description><![CDATA[<p>
<i>Johannes Schluter</i> has pointed out a "hidden gem" for PHP 5.3 in his <a href="http://schlueters.de/blog/archives/92-A-hidden-gem-in-PHP-5.3-fileinfo.html">latest blog post</a> - the <a href="http://php.net/fileinfo">fileinfo extension</a>.
</p>
<blockquote>
This series is not meant to be complete but some personal choice, these blog postings are also no replacement for documentation, but just pointers. My goal is that you try out 5.3 right now so we can fix bugs as soon as possible before releasing it  The NEWS file has a quite short entry for my first subject: Added fileinfo extension as replacement for mime_magic extension. (Derick)
</blockquote>
<p>
He looks at one situation where <a href="http://php.net/fileinfo">the extension</a> could come in very handy - getting the content type of the file for a download push - as well as why its better than the older mime_content_type function.
</p>]]></description>
      <pubDate>Wed, 17 Dec 2008 09:35:59 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Zend Developer Zone: Zend Framework Hidden Gems: Zend_Db]]></title>
      <guid>http://www.phpdeveloper.org/news/6913</guid>
      <link>http://www.phpdeveloper.org/news/6913</link>
      <description><![CDATA[<p>
<i>Aaron Wormus</i> and the Zend Developer Zone have posted the <a href="http://devzone.zend.com/node/view/id/1367">latest edition</a> of their "Hidden Gems" series looking at the lesser-known features of the <a href="http://framework.zend.com">Zend Framework</a>. This time, it's a look at <a href="http://devzone.zend.com/node/view/id/1367">Zend_Db (database abstraction)</a>.
</p>
<blockquote>
<p>
Zend_Db is a layer which sits above the native PDO database extension. Before PDO (pre-PHP5.1) all we had to connect to databases were libraries that were developed in individual cycles and development teams, with little regard to what other database extensions were doing.
</p>
<p>
Taking this speed benefit of using PDO to do a majority of the work, PDO wrapper libraries like Zend_Db can supplement PDO with their own wrapper code leaving you with a fairly lightweight yet feature-rich database abstraction layer.
</p>
</blockquote>
<p>
<i>Aaron</i> <a href="http://devzone.zend.com/node/view/id/1367">looks at</a> connecting to a database (using both the PDO and DSN connections) and some example code showing how to work with the database using them - including queries and using transactions.
</p>]]></description>
      <pubDate>Mon, 18 Dec 2006 10:04:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Zend Developer Zone: Zend Framework Hidden Gems: Zend_Config]]></title>
      <guid>http://www.phpdeveloper.org/news/6765</guid>
      <link>http://www.phpdeveloper.org/news/6765</link>
      <description><![CDATA[<p>
The Zend Developer Zone has posted another in the "Hidden Gems" series by <i>Aaron Wormus</i>, <a href="http://devzone.zend.com/node/view/id/1264">this time</a> looking at the Zend_Config component.
</p>
<blockquote>
<p>
Managing configuration is a pretty simple thing to do in PHP, in fact, I'd bet that at some point in their programming career every php programmer has written code. But as soon as you get a bit bigger you realize that you're going to have trouble accessing your configuration variable. 
</p>
<p>
There are many reasons to manage your configuration data indepenantly from your business logic. One common reason is that you don't want to enter your configuration data into the public versioning system that you use.
</p>
</blockquote>
<p>
<i>Aaron</i> <a href="http://devzone.zend.com/node/view/id/1264">looks at</a> how you can use the component in your application easily including an example using the built-in inheritance functionality to easily manage a move from development to production.
</p>]]></description>
      <pubDate>Fri, 24 Nov 2006 11:43:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Zend Developer Zone: Zend Framework Hidden Gems: Zend_Cache]]></title>
      <guid>http://www.phpdeveloper.org/news/6730</guid>
      <link>http://www.phpdeveloper.org/news/6730</link>
      <description><![CDATA[<p>
The Zend Developer Zone has its next in its "Inside Look" series at the Zend Framework and its components - <a href="http://devzone.zend.com/node/view/id/1221">this look</a> at the Zend_Cache component.
</p>
<blockquote>

Caching isn't one of those things that many people think of when designing their first applications. However once they launch their new AJAX enabled web2.0 application, they might start wondering what they can do to get this beast to move faster. The answer is caching.
</blockquote>
<p>
<i>Aaron Wormus</i> gets started with the basics - why use caching and some of what it's for - before getting into the actual code example. His simple example just shows how to cache a bit of information and get when it was cached. He also talks about implementing tagging for more complex caches (different pieces for different times), and the drivers that are available for the component - both frontend and backend.
</p>]]></description>
      <pubDate>Fri, 17 Nov 2006 12:38:42 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Zend Developer Zone: Zend Framework Hidden Gems: Introduction]]></title>
      <guid>http://www.phpdeveloper.org/news/6670</guid>
      <link>http://www.phpdeveloper.org/news/6670</link>
      <description><![CDATA[<i>Cal Evans</i>, of the Zend Developer Zone, is <a href="http://devzone.zend.com/node/view/id/1164">taking a different path</a> than the large number of Zend Framework tutorials that he's seen out there:
</p>
<blockquote>
Zend Framework looked like an interesting platform, but each tutorial that I read started out with explaining how to set up your front controller, and moved form there into writing an entire application. I am not starting any new projects, and have no need for that.
</blockquote>
<p>
Instead, he's chosen to look a bit "behind the scenes" at what really makes the Framework tick and why it would be a good choice for any number of web applications out there. It's going to become a series on the ZDZ, so he starts it off right with a comparison between PEAR and the Zend Framework, specifically when it comes to error handling.
</p>
<p>
It's more of a <a href="http://devzone.zend.com/node/view/id/1164">compare and contrast</a> kind of thing than a contest, but it does seem that <i>Cal</i> favors one's approach a bit more. Which one? Well, you'll just have to go read and find out...
</p>]]></description>
      <pubDate>Wed, 08 Nov 2006 15:36:00 -0600</pubDate>
    </item>
  </channel>
</rss>
