PHP Classes

File: example/subscriber.php

Recommend this page to a friend!
  Classes of Jorge Castro  >  UsagiMQ  >  example/subscriber.php  >  Download  
File: example/subscriber.php
Role: Example script
Content type: text/plain
Description: Example script
Class: UsagiMQ
Manage message queues stored using Redis
Author: By
Last change:
Date: 2 years ago
Size: 708 bytes


Class file image Download
@set_time_limit(60*60); // 1 hour.
// its a local subscriber
include "../UsagiMQ.php";

$usa=new UsagiMQ("",6379,1);
if (!
$usa->connected) {
"not connected";


$listEnveloper as $id) {
// todo: code goes here

// $correct indicates if the operation was successful or not. For example, if the operation was to insert and the operation failed.
    // We also could decide to delete it for any case. Its up to us.
if ($correct) {
$usa->deleteItem($id); // YAY!
} else {
$usa->failedItem($id,$env); // booh hiss!.

For more information send a message to info at phpclasses dot org.