<?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>Wed, 19 Jun 2013 10:28:19 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Lee Davis' Blog: In ORM's Defense]]></title>
      <guid>http://www.phpdeveloper.org/news/17821</guid>
      <link>http://www.phpdeveloper.org/news/17821</link>
      <description><![CDATA[<p>
<i>Lee Davis</i> has a recent post that tries to combat some of the most common excuses people give for not using an ORM rather than opting to write the queries themselves. He <a href="http://www.duckheads.co.uk/in-orms-defence/">writes in defense</a> of the ORM and gives reasons why some of these common complaints may not matter that much.
</p>
<blockquote>
For some reason, as of late, I can't seem to attend any user group or conference without a speaker slating ORM's. Several speakers at the PHP UK Conference this year expressed their disapproval, as well as the speaker at this months PHP London talk. However, no one is giving me a strong enough argument to not use an ORM. Remarks such as "That's a whole other talk" or "Don't get me started on ORM's" seem to be thrown about. But whenever I get a chance to talk about any concerns or issues they're having the conversation just seems to deflate. Am I missing something really terrible about ORM's that's going to creep up and bite me?
</blockquote>
<p>
He goes through and lists some of the most common and explains how, once you get past some of the initial impressions, they might not be so bad:
</p>
<ul>
<li>Using ORMs means having a one to one relation between object and table
<li>ORMs produce sub-optimal SQL and far too many queries
<li>Using ORMs means using active record
<li>ORM is slower than just using SQL, Unlike other abstraction layers, which make up for their performance hit with faster development, ORM layers add almost nothing.
<li>But just pulling out arrays are quicker
<li>Incorrect abstraction - if you don't need relational data features you're using the wrong data store
</ul>]]></description>
      <pubDate>Mon, 16 Apr 2012 11:58:29 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Stefan Mischook's Blog: Defending against SQL Injection attacks]]></title>
      <guid>http://www.phpdeveloper.org/news/13622</guid>
      <link>http://www.phpdeveloper.org/news/13622</link>
      <description><![CDATA[<p>
In <a href="http://www.killerphp.com/articles/defending-against-sql-injection-attacks/">this new post</a> to his KillerPHP.com blog <i>Stefan Mischook</i> looks at a few of the basic steps you can take to help prevent SQL injection attacks in your application.
</p>
<blockquote>
You should protect your relational databases (like MySQL) from the dreaded SQL injection attack. These attacks are conducted by evil sniveling nerds, trying to insert damaging SQL code into your HTML form fields (and query strings too) to do things like drop database tables or even wipe out your database altogether!
</blockquote>
<p>
There's three things he recommends as good places to start - <a href="http://php.net/mysql_real_escape_string">mysql_real_escape_string</a>, using an ORM layer with its own escaping and using <a href="http://php.net/manual/en/book.pdo.php">something like PDO</a> that cleans up the input for you.
</p>]]></description>
      <pubDate>Thu, 03 Dec 2009 11:35:36 -0600</pubDate>
    </item>
  </channel>
</rss>
