<?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>Mon, 20 May 2013 21:44:48 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Rasmus Lerdorf's Blog: ZeroMQ + libevent in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/16928</guid>
      <link>http://www.phpdeveloper.org/news/16928</link>
      <description><![CDATA[<p>
<i>Rasmus Lerdorf</i> has a new post to his blog sharing the results of some "investigative hacking" he did to see if making <a href="http://toys.lerdorf.com/archives/57-ZeroMQ-+-libevent-in-PHP.html">ZeroMQ and libevent</a> work together was difficult. Thankfully, the answer was "not hard at all".
</p>
<blockquote>
While waiting for a connection in Frankfurt I had a quick look at what it would take to make ZeroMQ and libevent co-exist in PHP and it was actually quite easy. Well, easy after Mikko Koppanen added a way to get the underlying socket fd from the ZeroMQ PHP extension. To get this working, install the <a href="http://www.zeromq.org/bindings:php">PHP ZeroMQ extension</a> and the <a href="http://pecl.php.net/package/libevent">PHP libevent extension</a>.
</blockquote>
<p>
He includes a sample script show the results of his work, a basic server and client that sends a request to the ZeroMQ server and fires off an event using the <a href="http://libevent.org/">libevent</a> library (via PHP's <a href="http://pecl.php.net/package/libevent">extension</a>. You can find out more about using these two libraries in the PHP manual - <a href="http://php.net/libevent">libevent</a> and <a href="http://php.zero.mq/">ZeroMQ</a>
</p>]]></description>
      <pubDate>Thu, 29 Sep 2011 11:45:39 -0500</pubDate>
    </item>
  </channel>
</rss>
