<?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 05:54:03 -0600</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Maggie Nelson's Blog: To persist or not to persist?]]></title>
      <guid>http://www.phpdeveloper.org/news/10882</guid>
      <link>http://www.phpdeveloper.org/news/10882</link>
      <description><![CDATA[<p>
On her blog, Objectively Oriented, <i>Maggie Nelson</i> looks at <a href="http://www.objectivelyoriented.com/2008/08/to_persist_or_not_to_persist.html">a topic</a> she was debating for a new application - whether or not to use persistent connections to her database.
</p>
<blockquote>
There's a connection already waiting for you. Yay, right? Well, with MySQL, connecting is actually really really cheap, and frankly, if you are using persistent connections, you might encounter some issues with Apache going zombie on processes that use a connection, effectively taking that connection out of use. Grrr.
</blockquote>
<p>
She <a href="http://www.objectivelyoriented.com/2008/08/to_persist_or_not_to_persist.html">did some research</a> on the topic but found contradicting evidence for both sides. Eventually, what her choice boiled down to was this possible issue mentioned by <i>Jay Pipes</i> (of MySQL):
</p>
<blockquote>
If you use Apache, Apache can zombie a PHP process and cause the mysql connection to be held until the mysql server restarts...
</blockquote>]]></description>
      <pubDate>Fri, 22 Aug 2008 11:18:12 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Alison Holloway's Blog: Int'l PHP Magazine Article - The Oracle PHP Connection]]></title>
      <guid>http://www.phpdeveloper.org/news/7752</guid>
      <link>http://www.phpdeveloper.org/news/7752</link>
      <description><![CDATA[<p>
Those of you out there that work with PHP and Oracle might want to check out <a href="http://blogs.oracle.com/alison/2007/05/02#a45">the new article</a> that <i>Alison Halloway</i> mentions in her blog today - a reprint of a fellow Oracler - <i>Richard Rendell</i>'s article, <a href="http://www.oracle.com/technology/tech/php/pdf/php-oracle-connection-magazine-reprint.pdf">"The Oracle PHP Connection"</a> [pdf].
</p>
<blockquote>
In this article we take a look the connection methods used for PHP and Oracle database using the PHP OCI8 extension. Specifically we cover non-persistent and persistent connections while offering some suggestions for choosing the right approach. In addition we will cover some upcoming features in the next major release of the Oracle database to significantly improve scalability of PHP applications.
</blockquote>
<p>
He <a href="http://www.oracle.com/technology/tech/php/pdf/php-oracle-connection-magazine-reprint.pdf">talks about</a> [pdf] the types of Oracle->PHP connections, what the database name connection strings are (with examples) the environment variables for connections, closing the connections, a look at connection pooling, and an overview of using DRCP (Database Resident Connection Pooling) to accomplish it.
</p>]]></description>
      <pubDate>Wed, 02 May 2007 08:26:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[DeveloperTutorials.com: Developing State-enabled Applications With PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/7620</guid>
      <link>http://www.phpdeveloper.org/news/7620</link>
      <description><![CDATA[<p>
The Developer Tutorial website has a <a href="http://www.developertutorials.com/tutorials/php/developing-state-enabled-applications-with-php-060829/page1.html">new article</a> posted today about the creation of "state-enabled applications" with PHP. Basically, a chunk of functionality to keep user data persistent throughout the whole time they're on the site.
</p>
<blockquote>
A major drawback is that while browsing from one page to another, the website does not remember the State of the browsing session. This make interactivity almost impossible. In order to increase interactivity, the developer can use the session handling features of PHP to augment the features of HTTP in order to remember the State of the browsing session.
</blockquote>
<p>
They <a href="http://www.developertutorials.com/tutorials/php/developing-state-enabled-applications-with-php-060829/page1.html">look at two solutions</a> - using cookies and using sessions. Cookies are simple enough, but when it comes to sessions, there's actually two different roads to follow: with cookies enabled and without. They have to be handled slightly differently, but both essentially work the same way.
</p>]]></description>
      <pubDate>Fri, 13 Apr 2007 08:55:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Tobias Schlitt's Blog: Object relation mapping in eZ Components]]></title>
      <guid>http://www.phpdeveloper.org/news/7366</guid>
      <link>http://www.phpdeveloper.org/news/7366</link>
      <description><![CDATA[<p>
<i>Tobias Schlitt</i> has <a href="http://schlitt.info/applications/blog/index.php?/archives/528-Object-relation-mapping-in-eZ-Components.html">pointed out</a> a new <a href="http://ez.no/community/articles/the_persistentobject_ez_component_putting_relations_where_relations_belong">article he's written up</a> that acts as an introduction to the features of the new ORM component of the eZ Components application framework - the <a href="http://ez.no/doc/components/view/latest/(file)/classtrees_PersistentObject.html">PersisteneObject</a>.
</p>
<blockquote>
For me the coolest feature of PersistentObject is, that the component does not require you're ORM enabled classes to inherit from a certain base to allow your objects to be stored in a database (made persistent).
</blockquote>
<p>
This new object gives you a "wapper" of sorts to make any of the pre-existing objects in your application persistent. Check out <a href="http://ez.no/community/articles/the_persistentobject_ez_component_putting_relations_where_relations_belong">the article</a> for more.
</p>]]></description>
      <pubDate>Thu, 01 Mar 2007 10:03:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Stoyan Stefanov's Blog: Reusing an existing database connection with MDB2]]></title>
      <guid>http://www.phpdeveloper.org/news/7050</guid>
      <link>http://www.phpdeveloper.org/news/7050</link>
      <description><![CDATA[<p>
In <a href="http://www.phpied.com/reusing-an-existing-database-connection-with-mdb2/">this new blog post</a>, <i>Stoyan Stefanov</i> shares a method he's found to reuse an existing database connection with the MDB2 library.
</p>
<blockquote>
This is a follow up to a <a href="http://www.phpied.com/db-2-mdb2/#comment-44767">question</a> posted by Sam in my <a href="http://www.phpied.com/db-2-mdb2/">DB-2-MDB2 post</a>. The question was if you can reuse an exisitng database connection you've already established and not have MDB2 creating a second connection.
</blockquote>
<p>
He <a href="http://www.phpied.com/reusing-an-existing-database-connection-with-mdb2/">gives two different methods</a>, one for persistent connections and the other for non-persistent ones - including some code.
</p>]]></description>
      <pubDate>Mon, 08 Jan 2007 12:33:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[MySQL Performance Blog: Are PHP persistent connections evil ?]]></title>
      <guid>http://www.phpdeveloper.org/news/6699</guid>
      <link>http://www.phpdeveloper.org/news/6699</link>
      <description><![CDATA[<p>
The MySQL Performance Blog takes a look today at a more PHP-related topic - <a href="http://www.mysqlperformanceblog.com/2006/11/12/are-php-persistent-connections-evil/">persistent connections in PHP</a> and whether or not they are the devil (well, okay, so maybe not quest that bad - just a little evil).
</p>
<blockquote>
The reason behind using persistent connections is of course reducing number of connects which are rather expensive, even though they are much faster with MySQL than with most other databases.
</blockquote>
<p>
They <a href="http://www.mysqlperformanceblog.com/2006/11/12/are-php-persistent-connections-evil/">go on</a> to talk about:
<ul>
<li>issues with the number of active connections that could come up
<li>the use of too many connections at once
<li>why persistent connections are disabled in the new mysqli extension
</ul>
Their conclusion? Persistent connections are not evil. In fact, they're very good, when used in the right context and for the right kinds of queries. There's also a small push for an even newer MySQL driver for PHP by the MySQL team - the "mysqlnd" driver.
</p>]]></description>
      <pubDate>Tue, 14 Nov 2006 09:03:00 -0600</pubDate>
    </item>
  </channel>
</rss>
