Creating a chat bot with PHP and Dbus ~ Robert Basic Now that we know how to use DBus to communicate with Pidgin from PHP and how to listen to DBus signals, it's time to put it all together by creating a simple chat bot! Nothing fancy, just a simple script that runs somewhere on some server and, by using a Pidgin account, can respond to some basic queries we send it. What did we get? As we want our script to receive messages from an other account, first we need to listen to the ReceivedImMsg event on the im.pidgin.purple.PurpleInterface interface. The data we get with that event is the ID of receiver's account, the sender of the message, the actual message and the conversation's ID (and some flags which we're not interested in): $interface = "im.pidgin.purple.PurpleInterface"; $method = "ReceivedImMsg"; if ($signal->matches($interface, $method)) { $data = $signal->getData()->getData(); $receiver = $data[0]; $sender = $data[1]; $message = $data[2]; $conversation = $data[3]; } Creating a chat bot with PHP and Dbus ~ Robert Basic
12+ Tutorials for creating PHP5 MVC Framework Frameworks serve as basics for developing a theory, condition and design in broader sense but in the world of web site development, framework means applications that help you in creating something new or something most popular around the web. We have listed top php framework tutorials for your convenience so that you can have a good idea of how to create a framework if you are not satisfied with one listed by us. 1. PHP MVC Framework Part 1 - Part 2 2. 12+ Tutorials for creating PHP5 MVC Framework
Update 2012/01/15: I finally got around to submitting a patch to document this feature in the PHPUnit manual. Sebastian has merged it, so it will hopefully be available in the online manual soon. Update #2 2012/01/23: I got around to checking the online version of the manual and the current build includes my patch. Enjoy. Matthew Turland » Blog Archive » Database Testing with PHPUnit and MySQL Matthew Turland » Blog Archive » Database Testing with PHPUnit and MySQL
<?php set_time_limit(0); ini_set("memory_limit","9999M"); $regex = '#(\\? Récupération et validation des mails avec PHP chez Maxime DOKI Récupération et validation des mails avec PHP chez Maxime DOKI
Massive List of PHP Articles
Les bases, en mathématiques, sont des manières de voir les choses. Nous comptons (nous humains) en base 10. Voyons un exemple. Opérations booléennes et logique binaire en PHP Opérations booléennes et logique binaire en PHP
Simple MVC, a light PHP5 Framework Simple MVC, a light PHP5 Framework The new version of Simple MVC is Proudly released! This version fixes many bugs and offers new functionnalities. Here is the Change log: Several Bug Fixes in the Core PackageAdded Session ManagerAdded Form DecoratorsAdded Access HandlingAdded Configurable User Rights ManagerNew FormElement ValidatorsEnhanced the MVCAdded a Debug ConsoleAdded a default Demo Application
CALENDRIER SIMPLE calendrier, date, agenda, Source N°52667 PHP
TRIANGLE DE PASCAL ET SON ÉQUATION triangle, pascal, equation, math, identite remarquable, Source N°52411 PHP