PHP Classes

File: example/worker_insert_3.php

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

Contents

Class file image Download
<?php
@set_time_limit(60*60); // 1 hour.

include "../UsagiMQ.php";

$usa=new UsagiMQ("127.0.0.1",6379,1);
if (!
$usa->connected) {
    echo
"not connected";
    die(
1);
}
$key=@$_GET['key'];
if (
$key) {
   
$envelope = $usa->readItem($key);
   
//todo: here we do the task.
}

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