<?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>Sat, 22 Nov 2008 06:07:21 -0600</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[PHPro.org: SQLite-ON DUPLICATE KEY UPDATE]]></title>
      <guid>http://www.phpdeveloper.org/news/11379</guid>
      <link>http://www.phpdeveloper.org/news/11379</link>
      <description><![CDATA[<p>
<a href="http://www.phpro.org/tutorials/SQLite-ON-DUPLICATE-KEY-UPDATE.html">This new tutorial</a> on the PHPro.org website shows how to implement a common database feature, ON DUPLICATE KEY UPDATE, in a SQLite database with PHP.
</p>
<blockquote>
SQLite is an ultra lite database replacement that comes bundled with PHP. Because of its light weight it lacks many of the features found in more robust applications such as MySQL, PostgresQL and others. One of the features that is lacking is the ON DUPLICATE KEY UPDATE that is often used to automatically UPDATE a record, should a duplicate field be found. Here a demonstration is provided to duplicate this behaviour using PHP Exceptions. 
</blockquote>
<p>
Their example creates a table of animals and inserts several to act as a base. They show insert method, how to get the information back out and what happens when you try add a duplicate value to the table. Normally this just results in an exception being displayed but, when caught with exception handling, it can be redirected into an update statement to change that animal's current information.
</p>]]></description>
      <pubDate>Mon, 10 Nov 2008 12:58:18 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Mindoop Blog: SEO Warning : Zend framework and duplicate content]]></title>
      <guid>http://www.phpdeveloper.org/news/9084</guid>
      <link>http://www.phpdeveloper.org/news/9084</link>
      <description><![CDATA[<p>
On the Mindoop blog, there's <a href="http://www.mindloop.be/nieuws/nieuwe-ontwikkelingen/seo-warning--zend-framework-and-duplicate-content">a new post</a> talking about some of the issues that the Zend Framework could cause with the SEO for your site - a simple reason, really.
</p>
<blockquote>
Zend framework is becoming a first choice framework for a large percentage of PHP developers. It's native support for advanced URL routing makes implementing search engine optimized URLs a breeze. Or not?
</blockquote>
<p>
Because of the reserved words for the controllers and the multiple ways to access the actions below it (his example is case_studies, case-studies and case)studies) make three different ways to get to the same content - a SEO no-no.
</p>]]></description>
      <pubDate>Wed, 21 Nov 2007 07:54:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Brian Moon's Blog: ForceType for nice URLs with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/8785</guid>
      <link>http://www.phpdeveloper.org/news/8785</link>
      <description><![CDATA[<p>
On <a href="http://doughboy.wordpress.com/2007/10/04/forcetype-for-nice-urls-with-php/">his blog today</a>, <i>Brian Moon</i> talks about setting up ForceType directives in Apache, specifically how to make "friendly URLs" without having to use mod_rewrite (which might not be installed on your server).
</p>
<blockquote>
This has been covered before, but I was just setting up a new force type on our servers and thought I would mention it for the fun of it. You see lots of stuff about using mod_rewrite to make friendly URLs or SEO friendly URLs. But, if you are using PHP (and I guess other Apache modules) you can do it without mod_rewrite.
</blockquote>
<p>
There's three steps to <a href="http://doughboy.wordpress.com/2007/10/04/forcetype-for-nice-urls-with-php/">the process</a> - adding the directive to your Apache config, making the script able to handle the request, avoiding duplication of content and returning a 404 error when there's no matching data.
</p>]]></description>
      <pubDate>Thu, 04 Oct 2007 09:37:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Soledad Penades' Blog: Signs your PHP needs refactoring]]></title>
      <guid>http://www.phpdeveloper.org/news/7980</guid>
      <link>http://www.phpdeveloper.org/news/7980</link>
      <description><![CDATA[<p>
As <a href="http://feeds.feedburner.com/~r/funkablog/~3/122396798/">mentioned by</a> <i>Ed Finkler</i>, there's a list of <a href="http://www.soledadpenades.com/2007/06/05/signs-your-php-needs-refactoring/">signs your PHP needs refactoring</a> from <i>Soledad Penades</i>.
</p>
<blockquote>
<p>
I have had to go through a php application recently which has given me more than one headache and has required me to use all my possible patience. While working with it, I thought This is good material for an article, so that nobody else does the same in the future, and nobody else will need to experience the same displeasure as I have had to.
</p>
<p>
So here are the signs your PHP application needs a serious refactoring, right now
</p>
</blockquote>
<p>
Included in <a href="http://www.soledadpenades.com/2007/06/05/signs-your-php-needs-refactoring/">the list</a> are things like:
</p>
<ul>
<li>Uses global variables
<li>Everything's an array
<li>The neverending switch
<li>Interface inconsistency
</ul>
<p>
It hits on one of the thing that bugs me too, the problem of "Brackets galore" - so many subarrays that you have to resort to three or more sets of bracketed keys to get to the value you want. It's bad enough trying to follow someone else's code without having to "trace down" an array to figure out which of the values they're talking about.
</p>]]></description>
      <pubDate>Tue, 05 Jun 2007 16:26:00 -0500</pubDate>
    </item>
  </channel>
</rss>
