<?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, 20 Nov 2008 01:53:19 -0600</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Harry Roberts' Blog: Flexible PHP Interfaces]]></title>
      <guid>http://www.phpdeveloper.org/news/10392</guid>
      <link>http://www.phpdeveloper.org/news/10392</link>
      <description><![CDATA[<p>
In an effort to breathe as much life into an old bit of software he was having to update, <i>Harry Roberts</i> worked up a <a href="http://codeb.us/flexible-php-interfaces">list of things</a> that he sees can make things a bit more "programmer friendly" when it comes to using classes, methods and interfaces in your code.
</p>
<p>His list of four is:</p>
<ul>
<li>Doc Comments
<li>Flexible Parameters
<li>Use method Entry contracts
<li>Be Stateful and Refactor
</ul>
<p>
The "Doc Comments" is pretty obvious, but some of the others need a bit more explaining. Being flexible with your parameters is more about requiring the least from a developer, "entry contracts" being the restrictions to let the developer know what you're expecting and refactoring commonly used functionality into a easy, single point of contact.
</p>]]></description>
      <pubDate>Wed, 11 Jun 2008 13:40:10 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[The Shadow Fox Network: Create Dynamic URLs With Mod_Rewrite and PHP Functions]]></title>
      <guid>http://www.phpdeveloper.org/news/6585</guid>
      <link>http://www.phpdeveloper.org/news/6585</link>
      <description><![CDATA[<p>
On the Shadow Fox Network, there's a <a href="http://www.shadow-fox.net/site/tutorial/45-Create-Dynamic-URLs-With-Mod-Rewrite-and-PHP-Functions">new tutorial</a> that shows how to combine the Apache mod_rewrite functionality with some PHP functions to make passing variables over your rewritten URL easy.
</p>
<blockquote>
You can't pass variables well without adding more commands to mod_rewrite. So here you'll learn to add unlimited parameters to your links with only one simple PHP function.
</blockquote>
<p>
He starts with a <a href="http://www.shadow-fox.net/site/tutorial/45-Create-Dynamic-URLs-With-Mod-Rewrite-and-PHP-Functions">mini-refresher course</a> on the contents of the previous article and moves to the simple rewrite example that makes it possible - a two line statement. Then, it's on to the PHP - again, a simple function that does things simply, grabs all of the parameters from the URL and splits them out into a global parameters array. He even includes a simple example as a tutorial you can try out with <a href="http://old.shadow-fox.net/routing/index//id/10/type/month">the demo</a>.
</p>]]></description>
      <pubDate>Thu, 26 Oct 2006 11:12:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[SitePoint Site Marketing Blog: Track Your Rank Using the Google API]]></title>
      <guid>http://www.phpdeveloper.org/news/5160</guid>
      <link>http://www.phpdeveloper.org/news/5160</link>
      <description><![CDATA[<p>
Sitepoint, widely known for quality in content and tutorials, has a <a href="http://www.sitepoint.com/article/track-rank-google-api">new post</a> on its Site Marketing blog today dealing with tracking a site's Google ranking with the help of the Google API and the <a href="http://pear.php.net/package/SOAP">PEAR SOAP package</a>.
</p>
<p>
<i>Bernard Peh</i>, the author, sets up what the Google API is and includes the way to grab your own API key (your pass into the powerful Google backend). The other two requirements for the project are the PEAR SOAP package and an install of at least PHP 4 or higher.
</p>
<p>
There's a list of input parameters for the functionality, with each described for what it does, and pley of code to help you integrate them into the API call. They give the example of the class grabbing the needed info (via SOAP), parsing out your URL from those results, and a simple form to make checking different URLs all the simpler.
</p>]]></description>
      <pubDate>Wed, 12 Apr 2006 07:24:27 -0500</pubDate>
    </item>
  </channel>
</rss>
