PHP Classes

File: example/worker_insert_1.php

Recommend this page to a friend!
  Classes of Jorge Castro   UsagiMQ   example/worker_insert_1.php   Download  
File: example/worker_insert_1.php
Role: Example script
Content type: text/plain
Description: Example script
Class: UsagiMQ
Manage message queues stored using Redis
Author: By
Last change:
Date: 4 years 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.
}