<?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 17:48:01 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Mark Karpeles' Blog: proctitle: a new step for pinetd]]></title>
      <guid>http://www.phpdeveloper.org/news/11793</guid>
      <link>http://www.phpdeveloper.org/news/11793</link>
      <description><![CDATA[<p>
If you've ever worked with forking processes in PHP, you know things can get a little difficult when you have more than one process going at a time. Identification can become a hassle, especially if you need to kill one off because of performance issues. If you've found yourself in this spot before, you might want to check out <a href="http://blog.magicaltux.net/2009/01/21/proctitle-a-new-step-for-pinetd/">this update</a> <i>Mark Karpeles</i> has made to his <a href="http://www.pinetd.net/">pinetd</a> project to allow for naming of those forked processes.
</p>
<blockquote>
Ever wanted to give meaningful names to your processes when you pcntl_fork() with PHP ? proctitle is the extension you're looking for!
Adapted from <a href="http://bugs.php.net/29479">bug report #29479</a> and code initially wrote by <a href="http://en.wikipedia.org/wiki/User:Midom">Midom</a> for Wikipedia, the proctitle extension allows for a process to change its own displayed title in the system's process list.
</blockquote>
<p>
The extension (seen in action <a href="http://blog.magicaltux.net/wp-content/uploads/2009/01/viva_pinetd1.png">here</a>) is an interface for making different sorts of daemons, including the ability to give them names. You can check out the project <a href="http://ookoo.org/svn/proctitle/">here</a>.
</p>]]></description>
      <pubDate>Thu, 22 Jan 2009 11:12:17 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Lukas Smith's Blog: Persistent connections with MSSQL]]></title>
      <guid>http://www.phpdeveloper.org/news/11555</guid>
      <link>http://www.phpdeveloper.org/news/11555</link>
      <description><![CDATA[<p>
<i>Lukas Smith</i> is <a href="http://pooteeweet.org/blog/0/1370#m1370">looking for a little help</a> on a strange problem he's seeing connecting to a SQL Server with persistent connections:
</p>
<blockquote>
We are connecting to SQL Server via mssql_pconnect(). MaxChilds is set to 256 and we are only establishing one connection per request. So as a result I am expecting a maximum of 256 established connections. A client went into production yesterday and due to a missing index the server ended up being insanely loaded, as the queries started to block each other. The sysadmin checked the state of things via netstat and found that there were close to 500 tcp connections to the SQL Server. What gives?
</blockquote>
<p>
He checked FreeTDS and the MaxRequestsPerChild settings to ensure that nothing there could have caused the problem, but hasn't found any hints so far. If he can't solve it right away, he also wonders if there's a way to kill idle connections if they're not used in a certain amount of time.
</p>
<p>
There's already one connect that mentions a similar issue but with Oracle connections, also on RHEL, but no definitive answers so far.
</p>]]></description>
      <pubDate>Thu, 11 Dec 2008 12:01:26 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: Developing an Extensible TCP Server with Sockets in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/5472</guid>
      <link>http://www.phpdeveloper.org/news/5472</link>
      <description><![CDATA[<p>
Devshed has posted <a href="http://www.devshed.com/c/a/PHP/Developing-an-Extensible-TCP-Server-with-Sockets-in-PHP/">part two</a> in their series of "handling sockets in PHP", this time, with a focus on the creation of a TCP server.
</p>
<quote>
<i>
Are you interested in learning how to manipulate low-level sockets in PHP? Your search has finished. This is the second part of the series "Handling sockets in PHP," and hopefully you'll find in it valuable material regarding the creation and manipulation of sockets with PHP, in conjunction with numerous illustrative hands-on examples that will help you build socket servers in a few easy steps.
</i>
</quote>
<p>
The tutorial <a href="http://www.devshed.com/c/a/PHP/Developing-an-Extensible-TCP-Server-with-Sockets-in-PHP/">walks you through</a> the simple process, looking back at the simple version they made before, looking forward at expaning it to handle multiple client requests, and creating a "socket server" class to automatically handle the creation of the socket.
</p>]]></description>
      <pubDate>Tue, 30 May 2006 17:58:33 -0500</pubDate>
    </item>
  </channel>
</rss>
