PHP Classes

File: tests/status-list.php

Recommend this page to a friend!
  Classes of Joseluis Laso   Asynchronous Long Server Tasks   tests/status-list.php   Download  
File: tests/status-list.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Asynchronous Long Server Tasks
Start background tasks and query progress status
Author: By
Last change:
Date: 8 years ago
Size: 294 bytes
 

Contents

Class file image Download
<?php

require_once __DIR__.'/../vendor/autoload.php';

use
JLaso\ToolsLib\Status;

$status = new Status();

$st1 = $status->getInfo(1);

print
"status for id=1 is ".$st1.PHP_EOL;

$status->updateStatus(1, "status-#".rand(10,30));

$st2 = $status->getInfo(1);

print
"and now is ".$st2.PHP_EOL;