News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Rob Young's Blog:
Non-blocking I/O With PHP-MIO
April 24, 2007 @ 10:54:00

Via the Zend Developer Zone, I found out about this new article from Rob Young about using PHP-MIO to create non-blocking I/O.

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.

[...] 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.

He explains 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.

0 comments voice your opinion now!
phpmio nonblocking multiplexed Io tutorial phpmio nonblocking multiplexed Io tutorial


blog comments powered by Disqus

Similar Posts

Fabien Potencier's Blog: Create your own framework... on top of the Symfony2 Components (part 8)

Matthew Weir O'Phinney's Blog: Login and Authentication with Zend Framework

WebReferece.com: Building a Weblog: Part 2

Asvin Balloo's Blog: AJAX image cropper with YUI and PHP

Chris Hartjes' Blog: Don’t Fear The Command Line: Using CakePHP Shells


Community Events





Don't see your event here?
Let us know!


voicesoftheelephpant opinion update community composer framework introduction release laravel symfony package mvc language library security version series interview tool podcast

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework