<?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>Tue, 21 May 2013 22:41:47 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Rob Young's Blog: Non-blocking I/O With PHP-MIO]]></title>
      <guid>http://www.phpdeveloper.org/news/7693</guid>
      <link>http://www.phpdeveloper.org/news/7693</link>
      <description><![CDATA[<p>
Via the <a href="http://devzone.zend.com/node/view/id/1956">Zend Developer Zone</a>, I found out about <a href="http://thethoughtlab.blogspot.com/2007/04/non-blocking-io-with-php-mio.html">this new article</a> from <i>Rob Young</i> about using <a href="http://sourceforge.net/projects/phpmio">PHP-MIO</a> to create non-blocking I/O.
</p>
<blockquote>
<p>
A couple of weeks ago I was thinking about non-blocking I/O in PHP, specifically about how clunky PHP's select implementation is. I say clunky because it's not bad, it's just not as easy to use as it could be. 
</p>
<p>
[...] I have to remember which streams I'm interested in writing to, which streams I'm interested in reading from and when I get to accepting connections, which streams are server sockets that I'm interested in accepting connections on. I'm lazy, I don't want to have to do that , I want a library to handle all that for me. At this point I decided to implement something similar to Java's non-blocking I/O in PHP5. This is now finished and up on sourceforce (under the name of phpmio). In this article I hope to give you enough information to get up and running with the package.
</p>
</blockquote>
<p>
He <a href="http://thethoughtlab.blogspot.com/2007/04/non-blocking-io-with-php-mio.html">explains</a> what multiplexed I/O is (including code), what PHP-MIO is (yes, including code), and a more real life example of how to use it - a simple server that accepts connections and spits back a simple response.
</p>]]></description>
      <pubDate>Tue, 24 Apr 2007 10:54:00 -0500</pubDate>
    </item>
  </channel>
</rss>
