<?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, 18 May 2013 17:59:12 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[David Goodwin's Blog: Storing PHP objects in a database (please no!)]]></title>
      <guid>http://www.phpdeveloper.org/news/12133</guid>
      <link>http://www.phpdeveloper.org/news/12133</link>
      <description><![CDATA[<p>
<i>David Goodwin</i> has a suggestion for those developers that think storing objects in a database is a good idea - <a href="http://codepoets.co.uk/storing-php-objects-database-please-no">don't do it!</a>
</p>
<blockquote>
Short answer: <b>DO NOT DO IT</b>. Longer answer:....I hate seeing serialized PHP objects within a database.
</blockquote>
<p>Some of his reasons include:</p>
<ul>
<li>It's difficult to index/search - you'll probably need to use a regexp.
<li>PHP Specific - good luck doing much with the data in a.n.other language
<li>If the objects are large, you're likely to have a text or a blob field - this will suck from a performance point of view (at least in MySQL)
<li>Why bother storing serialized objects in a database - surely to the filesystem would be better?
</ul>
<p>
Several opinions are expressed <a href="http://codepoets.co.uk/storing-php-objects-database-please-no#comments">in the comments</a> including some that agree with <i>David</i> and some that still defend the idea.
</p>]]></description>
      <pubDate>Fri, 13 Mar 2009 12:01:36 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Chris Shiflett's Blog: PHP Insecurity]]></title>
      <guid>http://www.phpdeveloper.org/news/4715</guid>
      <link>http://www.phpdeveloper.org/news/4715</link>
      <description><![CDATA[<i>Chris Shiflett</i>'s <a href="http://shiflett.org/archive/185">latest post</a> mentions <a href="http://www.greebo.net/?p=320">this criticism</a> of PHP's insecurity as made by <i>Andrew van der Stock</i>.
<p>
<quote>
<i>
<a href="http://www.greebo.net/">Andrew van der Stock</a> has written a <a href="http://www.greebo.net/?p=320">strong criticism</a> of PHP's insecurity. Andrew is a seasoned security expert and a major contributor to <a href="http://www.owasp.org/">OWASP</a>, and he states:
<p>
"After writing PHP forum software for three years now, I've come to the conclusion that it is basically impossible for normal programmers to write secure PHP code. It takes far too much effort."
<p>
He <a href="http://www.greebo.net/?p=320">continues</a>, citing specific areas where he thinks PHP is weak and asserting that "PHP must now mature and take on a proper security architecture."
</i>
</quote>
<p>
<i>Chris</i> also mentions that some of the reasons <i>Andrew</i> mentions include register_globals, magic_quotes_gpc, and safe_mode - all due to be removed in the latest PHP version (6). Also, be sure to <a href="http://shiflett.org/archive/185#comments">check out the comments</a> on the post for a good bit more information and discussion...]]></description>
      <pubDate>Tue, 24 Jan 2006 06:34:00 -0600</pubDate>
    </item>
  </channel>
</rss>
