News Feed
Jobs Feed
Sections




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

Robert Basic's Blog:
Listening to Dbus signals with PHP
December 26, 2011 @ 11:23:41

Robert Basic has posted a follow up to his first post about using DBase in PHP in this new post. This new tutorial shows you how to listen to signals sent to the waiting PHP script.

The good part is that not can we only call different methods against Pidgin's libpurple API, we can also listen to different signals on different events, that are sent via Dbus. [...] The PHP Dbus extension allows us to watch for one exact signal on an interface, or for all signals on an interface. Of course, we can add watches on multiple interfaces at once.

In his example he shows how to set a listener on the session to watch for an incoming instant message from another source. Sample code is included showing how to set the listener on the interface and be able to tell when a message comes in (watching a $signal interface for an event). You can find more signal catching examples in his github repository.

0 comments voice your opinion now!
dbus signal listen tutorial extension


blog comments powered by Disqus

Similar Posts

SitePoint PHP Blog: Character Encoding: Issues with Cultural Integration

Henrik Bjørnskov's Blog: Travis & Composer sitting in a tree K-I-S-S-I-N-G

Ibuildings techPortal: DPCRadio: Working with Zend_Form

PHPClasses.org Blog: Throttling Background Tasks: Unusual Site Speedup Techniques: Part 2

Sander van de Graaf's Blog: Optimizing your (ZF) web application


Community Events











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


example language hhvm release symfony2 introduction database facebook component composer project install performance security framework package application hack unittest podcast

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