<?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>Sat, 25 May 2013 18:00:02 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[PHP Town Hall Podcast: Episode #7 - Web Sockets Are Fast]]></title>
      <guid>http://www.phpdeveloper.org/news/19607</guid>
      <link>http://www.phpdeveloper.org/news/19607</link>
      <description><![CDATA[<p>
The PHP Town Hall podcast has <a href="http://phptownhall.com//blog/2013/06/18/episode-7-web-sockets-are-fast/">posted a new episode</a> - Episode #7: "Web Sockets Are Fast".
</p>
<blockquote>
<a href="https://twitter.com/boden_c">Chris Boden</a> joins us to talk about a <a href="http://socketo.me/">Ratchet</a> and <a href="http://reactphp.org/">React</a>. The conversation is basically Ben and Phil asking a bunch of questions about how Ratchet works, pretending we know what is going on while Chris uses lots of words like "concurrency" and "non-blocking". We decide that PHP is web-scale, event-driven programming is not just for NodeJS hipsters, we all take the "Are You a Brogrammer" test and <a href="https://twitter.com/walesmd">Michael Wales</a> crashes the show half way through like a ninja.
</blockquote>
<p>
You can listen to this latest episode either through the <a href="http://phptownhall.com//blog/2013/06/18/episode-7-web-sockets-are-fast/">in-page player</a> or by <a href="http://s3.amazonaws.com/phptownhall/7.mp3">downloading the episode</a> directly. You can also <a href="http://phptownhall.com/itunes.rss">subscribe to their feed</a> if you'd like the latest shows as they're released.
</p>
Link: http://phptownhall.com//blog/2013/06/18/episode-7-web-sockets-are-fast]]></description>
      <pubDate>Mon, 20 May 2013 11:41:55 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Web & PHP Magazine: Issue #12 - Don't Get in a PECL]]></title>
      <guid>http://www.phpdeveloper.org/news/19290</guid>
      <link>http://www.phpdeveloper.org/news/19290</link>
      <description><![CDATA[<p>
The latest issue of the Web and PHP Magazine has been published - <a href="http://webandphp.com/issue-12">issue #12</a>, "Don't get in a PECL". This latest issue includes articles like:
</p>
<ul>
<li>"The Power of PECL" by <i>Simon Holywell</i>
<li>"Be 'ready' if you want to be done!" by <i>Steffan Surdek</i>
<li>"All Data is Relational" by <i>Cory Isaacson</i>
<lI>"Fixing PHP Production Problems with APM" by <i>Dan Delany</i> and <i>Chris Kelly</i>
<li>"Trust" by <i>Sebastian Bergmann</i>
</ul>
<p>
You can download your copy for free from <a href="http://webandphp.com/issue-12">their site</a> and catch up on back issues.
</p>]]></description>
      <pubDate>Fri, 08 Mar 2013 10:23:36 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[James Morris: A WebSockets, Ratchet, Silex and Redis PubSub Implementation]]></title>
      <guid>http://www.phpdeveloper.org/news/19080</guid>
      <link>http://www.phpdeveloper.org/news/19080</link>
      <description><![CDATA[<p>
<i>James Morris</i> has an <a href="http://blog.jmoz.co.uk/websockets-ratchet-react-redis">interesting new post</a> to his site about the creation of a real-time web service that could be used for iOS applications via Websockets. He chose <a href="http://socketo.me/">Ratchet</a> for the handling (a PHP-based websocket tool) combined with Redis and Silex.
</p>
<blockquote>
I was approached by a betting/gambling development company who potentially needed a middleware building that would pull from an existing gambling web service and basically transmit to connected iPhone clients the changes from the web service. At first, the obvious answer might be to create another REST web service that the iPhone clients could just ping for changes. However, one of the devs explained that this wouldn't be fast enough, or scale - they'd need changes to be transmitted as soon as possible, as the app would be a real-time betting app and there'd be thousands of connections to the server.
</blockquote>
<p>
His solution involved hooking together Ratchet, Redis, Silex and Predis-async to create <a href="http://silex-test.jmoz.co.uk/pubsub">this sample tool</a> for handling the websocket requests. it uses the "pubsub" mechanism of Redis to push the updates out to listening clients.
</p>]]></description>
      <pubDate>Wed, 23 Jan 2013 12:09:33 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Pivory.com: From Ajax to WebSocket with PHP, a Quick Example]]></title>
      <guid>http://www.phpdeveloper.org/news/18429</guid>
      <link>http://www.phpdeveloper.org/news/18429</link>
      <description><![CDATA[<p>
On Pivory.com there's a new topic (tutorial) showing you a <a href="http://pivory.com/#topic/1409">simple example of using WebSockets</a> with the <a href="http://socketo.me/">Ratchet</a> PHP library, complete with sample code.
</p>
<blockquote>
WebSocket is the modern way for realtime two-way communications between server and browser. In the beginning we have Ajax calls [...] and with WS in picture the logic becomes [different]. [There] is a separate WS server, say listening on xxx.xxx.xxx.xxx:8080, and it can send messages to connected clients in realtime at any moment. The WS server can be in any language (such as node.js + socket.io) and on any machine or even in a cloud service. I use PHP (try <a href="http://socketo.me">http://socketo.me</a> for Ratchet) because I am lazy.
</blockquote>
<p>
The example shows a basic PHP Web Socket server running on a port with methods for "on connect", "on close", "on error" and "on message send". There's an example of the Javascript code to connect to this socket, showing how to convert it over from Ajax usage.
</p>]]></description>
      <pubDate>Fri, 31 Aug 2012 10:41:28 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[NetTuts.com: Getting Real-Time with Pusher]]></title>
      <guid>http://www.phpdeveloper.org/news/16949</guid>
      <link>http://www.phpdeveloper.org/news/16949</link>
      <description><![CDATA[<p>
On NetTuts.com today there's a new tutorial showing you how to <a href="http://net.tutsplus.com/tutorials/javascript-ajax/getting-real-time-with-pusher/">implement the Pusher service</a> that gives you <a href="http://pusher.com/">real-time messaging</a> for your application. Their backend for the project is written in PHP using Pusher's library.
</p>
<blockquote>
Do you want to spice up your web applications by making them real-time - but don't want to create new infrastructures for the sole purpose of getting web sockets to work? In this article, we'll explore how to use and implement <a href="http://pusher.com/">Pusher</a>, an HTML5 WebSocket-powered real-time messaging service for your applications.
</blockquote>
<p>
Pusher uses HTML5 <a href="http://en.wikipedia.org/wiki/WebSocket">WebSockets</a> to handle the messaging, so you'll need a browser that supports it to follow along with the tutorial. The Pusher API provides and endpoint for authorization and the push and pull of messages. In the tutorial, they create a simple chat application that gives a "Who's Online" and a window with the latest messages. You can download the full source (Javascript and PHP) <a href="http://nettuts.s3.amazonaws.com/1059_pusher/demo.zip">here</a> or view a demo <a href="http://nikkobautista.com/demos/pusher">here</a>.
</p>]]></description>
      <pubDate>Wed, 05 Oct 2011 08:39:52 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Gonzalo Ayuso's Blog: Real time monitoring PHP applications with websockets and node.js]]></title>
      <guid>http://www.phpdeveloper.org/news/16313</guid>
      <link>http://www.phpdeveloper.org/news/16313</link>
      <description><![CDATA[<p>
<i>Gonzalo Ayuso</i> has a new post to his blog today looking at a method you can use for <a href="http://gonzalo123.wordpress.com/2011/05/09/real-time-monitoring-php-applications-with-websockets-and-node-js/">real-time monitoring of your PHP applications</a> with a combination of websockets and Node.js. The trick is to handle the PHP errors and send them over to a Node.js server for processing.
</p>
<blockquote>
The inspection of the error logs is a common way to detect errors and bugs. We also can show errors on-screen within our developement server, or we even can use great tools like firePHP to show our PHP errors and warnings inside our firebug console. That's cool, but we only can see our session errors/warnings. If we want to see another's errors we need to inspect the error log. tail -f is our friend, but we need to surf against all the warnings of all sessions to see our desired ones. Because of that I want to build a tool to monitor my PHP applications in real-time.
</blockquote>
<p>
The service will work similar to a chat server, sending messages one at a time to the remote server via a web client (HTML5-based) and some backend PHP. He includes all the code you'll need to create the HTTP and web socket server as well as the web client (with some Javascript) and some example server-side PHP. It throws an exception and catches it to send to the waiting Node.js server. A <a href="http://www.youtube.com/watch?v=KnBRcU_tBkk">screencast</a> is also included showing the full process. You can get the complete code for this example in <a href="https://github.com/gonzalo123/RealTimeMonitor">this repository</a> on <i>Gonzalo</i>'s github account.
</p>]]></description>
      <pubDate>Mon, 09 May 2011 11:02:28 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Michael Feichtinger's Blog: HTML5 WebSockets Example]]></title>
      <guid>http://www.phpdeveloper.org/news/14799</guid>
      <link>http://www.phpdeveloper.org/news/14799</link>
      <description><![CDATA[<p>
<i>Michael Feichtinger</i> has as <a href="http://bohuco.net/blog/2010/07/html5-websockets-example/">recent post to his blog</a> talking about HTML5 WebSockets including an example he's created.
</p>
<blockquote>
HTML5 WebSockets makes it possible to open a persistent connection to a server within a web-browser via javascript. Websockets works already in the latest Webkit-browsers like Safari 5 and Chrome 5. Firefox 4 Beta 1 knows the Websocket-Object but it can't open the connection.
</blockquote>
<p>
His <a href="http://bohuco.net/dev/websocket/">sample script</a> lets you control the cursors of the other visitors of the page via some Javascript that runs a "mousemove" event on the current page. You can get the source for both the <a href="http://bohuco.net/dev/websocket/?source=WebSocketServer.php">WebSocketServer</a> and <a href="http://bohuco.net/dev/websocket/?source=server.php">server</a>.
</p>]]></description>
      <pubDate>Thu, 15 Jul 2010 12:09:39 -0500</pubDate>
    </item>
  </channel>
</rss>
