<?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>Sun, 06 Jul 2008 22:08:51 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[ApacheLounge.com: Memory usage Apache + PHP as module versus FastCGI]]></title>
      <guid>http://www.phpdeveloper.org/news/10264</guid>
      <link>http://www.phpdeveloper.org/news/10264</link>
      <description><![CDATA[<p>
In <a href="http://www.apachelounge.com/forum/viewtopic.php?p=10991">this quick post</a> to the ApacheLounge forum, <i>Steffen</i> shares some stats running PHP in two different methods of running PHP on Apache - mod_php and fastcgi.
</p>
<blockquote>
With PHP as module after some time the memory usage of Apache is growing and growing up to ~800M.<br/>
With mod_fcgid is stays on a steady ~100M <br/>
PHP configuration: only with the extension php_mysql.dll and eaccelerator.dll 
</blockquote>
<p>
<a href="http://www.apachelounge.com/images/httpd-ram-week.png">A graph</a> of the statistics is also provided.
</p>]]></description>
      <pubDate>Mon, 26 May 2008 08:42:48 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Dave Marshall's Blog: Log memory usage using declare and ticks in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/10202</guid>
      <link>http://www.phpdeveloper.org/news/10202</link>
      <description><![CDATA[<p>
Posted to his blog, <i>Dave Marshall</i> has <a href="http://www.davedevelopment.co.uk/2008/05/12/log-memory-usage-using-declare-and-ticks-in-php/">a tip</a> that uses declare and a trick or two to check out the memory usage of your scripts.
</p>
<blockquote>
As far as I know, there isn't any memory footprint profiling in Xdebug, I think there was at some point but they removed it because it was a little flaky. I like to monitor the memory usage within my scripts, and I've found this simple snippet can help.
</blockquote>
<p>
The script defines a log_memory function that pushes the memory and time information into a session value. The register_tick_function method is used to add log_memory to the handler and its called over and over from inside his for loop.
</p>
]]></description>
      <pubDate>Fri, 16 May 2008 12:05:37 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[C7Y: Reflections on Designing an IRC Bot in PHP, Part 2]]></title>
      <guid>http://www.phpdeveloper.org/news/9996</guid>
      <link>http://www.phpdeveloper.org/news/9996</link>
      <description><![CDATA[<p>
<i>Matthew Turland</i> notes that the <a href="http://c7y.phparch.com/c/entry/1/art,irc_bots_in_php2">second part</a> of his "IRC Bots in PHP" series of articles has been posted to the C7Y community site (from <a href="http://www.phparch.com">php|architect</a>).
</p>
<blockquote>
The precursor to this article introduced some background and an overview of the design for the Phergie project as an example of the concepts involved in a PHP IRC bot implementation. This article will go further into the topic of plugins including descriptions of those that are commonly needed to make a bot fully functional as well as the commonly needed core features to support plugin development.
</blockquote>
<p>
In <a href="http://www.phpdeveloper.org/news/9934">part one</a> he set up some of the foundation code and explained some of the thought behind the structure of the bot. In <a href="http://c7y.phparch.com/c/entry/1/art,irc_bots_in_php2">this part</a> he gets more into the heart of the bot, showing how to define functions for common IRC actions (join/part/ping/etc) and how he made a plugin system to handle custom actions. He also mentions topics like memory usage, data storage methods and some of the "niceties" he included.
</p>]]></description>
      <pubDate>Fri, 18 Apr 2008 11:14:56 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHP-GTK Community Site: PHP-GTK on Vista Memory Issue]]></title>
      <guid>http://www.phpdeveloper.org/news/9789</guid>
      <link>http://www.phpdeveloper.org/news/9789</link>
      <description><![CDATA[<p>
The PHP-GTK Community Site has <a href="http://php-gtk.eu/phpgtk-on-vista-memory-issue">posted about</a> an issue that's been found with PHP-GTK on a Windows Vista machine that can cause problems with how the OS handles memory (by <i>Wim Stockman</i>).
</p>
<blockquote>
My work station is WinXp system and my friend where I had to create it for has the new Vista and somewhere over 9000 pictures to be managed. On my system everything worked fine, but on my friends system i always got the error can not open file.
</blockquote>
<p>
Further testing revealed that it was the OS at fault - Vista wasn't handling the memory usage for the application correctly. When it was run directly from the file explorer (versus in the PHP-GTK console) though, it worked just fine. 
</p>]]></description>
      <pubDate>Thu, 13 Mar 2008 09:37:27 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Brian Moon's Blog: Apache Worker and PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/9641</guid>
      <link>http://www.phpdeveloper.org/news/9641</link>
      <description><![CDATA[<p>
In a <a href="http://doughboy.wordpress.com/2008/02/13/apache-worker-and-php/">recent post</a> to his blog, <i>Brian Moon</i> talks about the experience he's had with using PHP on Apache 2 with a <a href="http://www.php.net/manual/en/faq.installation.php#faq.installation.apache2">threaded MPM</a> at Dealnews.com.
</p>
<blockquote>
Well, first, what is an MPM? It stands for Multi-Processing Module. [...] The most commonly used threaded MPM is the Worker MPM. In this MPM, you have several processes that run multiple threads within it. This is the one I will be talking about.
</blockquote>
<p>
He <a href="http://doughboy.wordpress.com/2008/02/13/apache-worker-and-php/">goes on</a> to describe the "huge memory savings" that using the module got them - using the worker process to increase the child capacity of the Apache instance. He recommends keeping it simple when compiling a server to work with the worker functionality and mentions  how it can also help with serving static pages right along side the dynamic ones (without a second server!).
</p>
<p>
Check out <a href="http://doughboy.wordpress.com/2008/02/13/apache-worker-and-php/">the post</a> for a few more tips.
</p>]]></description>
      <pubDate>Fri, 15 Feb 2008 08:43:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Christopher Jones' Blog: Temporary LOBS in PHP's OCI8 Extension. Instant Client.]]></title>
      <guid>http://www.phpdeveloper.org/news/9460</guid>
      <link>http://www.phpdeveloper.org/news/9460</link>
      <description><![CDATA[<p>
<i>Christopher Jones</i> talks today on <a href="http://blogs.oracle.com/opal/2008/01/17#a264">his blog</a> about a bug he's just corrected and integrated into the release of the Oracle Instant Client that lets PHP correctly take advantage of the temporary LOBS functionality.
</p>
<blockquote>
When PHP is done with the temporary LOB, it needs to tell Oracle to destroy it. If this isn't done, then the temporary LOB will hang around using DB space until the connection is closed. I just merged a fix worked on by Krishna Mohan and myself for <a href="http://bugs.php.net/bug.php?id=43497">bug 43497</a>.
</blockquote>
<p>
Example code is included showing two instances of its use - a normal use that frees the memory correctly and the other showing how to create the temporary lob to hold the data as needed.
</p>]]></description>
      <pubDate>Mon, 21 Jan 2008 12:05:00 -0600</pubDate>
    </item>
  </channel>
</rss>
