<?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 00:42:53 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Gonzalo Ayuso's Blog: Real time notifications with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/16051</guid>
      <link>http://www.phpdeveloper.org/news/16051</link>
      <description><![CDATA[<p>
In a new post <i>Gonzalo Ayuso</i> about a system he's developed to create <a href="http://gonzalo123.wordpress.com/2011/03/14/real-time-notifications-with-php/">real-time notifications</a> for PHP applications using a mix of PHP and javascript (jQuery).
</p>
<blockquote>
Real time communications are cool, isn't it? Something impossible to do five years ago now (or almost impossible) is already available. Nowadays we have two possible solutions. WebSockets and Comet. [...] I prefer to use comet (at least now). It's not as good as websockets but pretty straightforward ant it works (even on IE). Now I'm going to explain a little script that I've got to perform a comet communications, made with PHP. 
</blockquote>
<p>
His little sample application detects when a user has clicked on a link by subscribing to an event and using the javascript callback to send the message of a click event and wait for a response. You can find the complete code for the example <a href="https://github.com/gonzalo123/nov-comet">over on github</a>.
</p>]]></description>
      <pubDate>Wed, 16 Mar 2011 08:46:23 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[ThinkPHP Blog: Comet in conjunction with a PHP socket server - server-client communication]]></title>
      <guid>http://www.phpdeveloper.org/news/10941</guid>
      <link>http://www.phpdeveloper.org/news/10941</link>
      <description><![CDATA[<p>
In a <a href="http://blog.thinkphp.de/archives/355-Comet-in-conjunction-with-a-PHP-socket-server-Yet-another-way-of-server-client-communication.html">new post</a> to the ThinkPHP blog today there's a look at combining Comet with PHP to make a simple method for the client to talk back to the server outside the usual methods.
</p>
<blockquote>
If a couple of users have opened the application there are already some hundred or thousand requests per second. The outcome of this is a big load for your server and a highly increased traffic - your server will in a senseless way be overloaded. In conclusion, our problem is the enormous amount of polling without knowing whether the server really wants to send a new push. Let's turn the initial situation around. And we get the solution to our problem: Comet.
</blockquote>
<p>
With Coment, the model changes and the request is "cached" on the server-side automatically in a single Comet instance. Coordinate this with another recommendation of theirs, a PHP socket server, and you can do some pretty interesting things.
</p>]]></description>
      <pubDate>Tue, 02 Sep 2008 08:41:55 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPClasses.org: File upload progress meter for PHP 4, at last!]]></title>
      <guid>http://www.phpdeveloper.org/news/6956</guid>
      <link>http://www.phpdeveloper.org/news/6956</link>
      <description><![CDATA[<p>
With the release of PHP 5.2 and a new feature, the file upload hooks useful for making an upload progress meter, PHP 4 users have been feeling a little left out. Well, come into the light PHP4ers - PHPClasses has just what you need - <a href="http://www.phpclasses.org/browse/file/17423.html">two</a> <a href="http://www.phpclasses.org/browse/file/17424.html">patches</a> to give you the same functionality.
</p>
<blockquote>
Since I wanted to use this upload progress meter extension under PHP 4, I had to find an alternative solution. I decided to port the patch that adds hooks to monitor upload progress to make it run under PHP 4.
</blockquote>
<p>
These two patches work for different versions:
<ul>
<li><a href="http://www.phpclasses.org/browse/file/17423.html">PHP 4.3.11</a>
<li><a href="http://www.phpclasses.org/browse/file/17424.html">PHP 4.4.4</a>
</ul>
He <a href="http://www.phpclasses.org/blog/post/61-File-upload-progress-meter-for-PHP-4-at-last.html">also links</a> to a few other resources of use to file uploaders out there:
<ul>
<li><a href="http://www.meta-language.net/forms-examples.html?example=test_upload_progress&code=1">an example</a> of a plugin using COMET to generate the progress bar
<li>the <a href="http://pecl.php.net/package/uploadprogress">upload progress meter</a> for the PHP 5 series
<li>and a <a href="http://blog.bitflux.ch/archive/2006/12/05/upload-progress-meter-for-windows.html">Windows version</a> of the same.
</ul>
</p>]]></description>
      <pubDate>Thu, 21 Dec 2006 10:46:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPClasses.org: Responsive AJAX applications with COMET]]></title>
      <guid>http://www.phpdeveloper.org/news/6379</guid>
      <link>http://www.phpdeveloper.org/news/6379</link>
      <description><![CDATA[<p>
From PHPClasses.org today, there's <a href="http://www.phpclasses.org/blog/post/58-Responsive-AJAX-applications-with-COMET.html">a new article</a> describing the combination of a few technologies - more specifically Ajax, Comet, and PHP - to create responsive applications.
</p>
<blockquote>
<p>
This post describes an approach used to implement highly responsive AJAX applications using the COMET approach. It describes in detail how the AJAX COMET approach can be implemented in PHP.
</p>
<p>
It also discusses how HTTP compression and chunking affect AJAX response delays, as well aspects that may influence the choice between Apache 1.3.x with mod_gzip versus Apache 2.x with mod_deflate for AJAX COMET applications.
</p>
</blockquote>
<p>
<i>Manuel</i> breaks <a href="http://www.phpclasses.org/blog/post/58-Responsive-AJAX-applications-with-COMET.html">the tutorial up</a> into sections:
<ul>
<li>Multiple response AJAX requests
<li>COMET: Multiple response AJAX request implementation
<li>HTTP compression
<li>Page compression delays
<li>Avoiding mod_gzip dechunking
<li>Apache 2.2.x with mod_deflate
</ul>
For each topic, there's a bit of explaination and some links to reinforce the ideas. There's not really any code, but he does link to various classes that can help combine to meet the goal.
</p>]]></description>
      <pubDate>Wed, 27 Sep 2006 13:44:10 -0500</pubDate>
    </item>
  </channel>
</rss>
