News Feed
Sections




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

Gonzalo Ayuso's Blog:
Real time notifications with PHP
March 16, 2011 @ 08:46:23

In a new post Gonzalo Ayuso about a system he's developed to create real-time notifications for PHP applications using a mix of PHP and javascript (jQuery).

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.

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 over on github.

0 comments voice your opinion now!
notification realtime comet javascript jquery tutorial


blog comments powered by Disqus

Similar Posts

PHPBuilder.com: Meet PRADO, the Component-based PHP Development Framework

DevShed: Building a Data Validation System with the Prototype Pattern with PHP 5

PHPMaster.com: Web Routing in PHP with Aura.Router

Felix Geisendorfer's Blog: With jQuery & CakePHP to World Domination (Slides)

William's Blog: A Popurls Clone with PHP, jQuery, Awesomeness


Community Events





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


introduction voicesoftheelephpant community composer series unittest podcast symfony list version threedevsandamaybe configure language framework release laravel api interview opinion conference

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