Files
archived-pecl-networking-ge…/examples/reverse_client_bg.php
jluedke a256a02bd6 Re-named class/methods to conform to the php coding standards, modified
all test and examples as well. Added in the rest of the ARG_INFO stuff
2009-05-19 04:26:52 +00:00

29 lines
601 B
PHP

<?php
/*
* Gearman PHP Extension
*
* Copyright (C) 2008 James M. Luedke <contact@jamesluedke.com>,
* Eric Day <eday@oddments.org>
* All rights reserved.
*
* Use and distribution licensed under the PHP license. See
* the LICENSE file in this directory for full text.
*/
/* create our object */
$gmclient= new GearmanClient();
/* add the default server */
$gmclient->addServer();
/* run reverse client */
$job_handle = $gmclient->doBackground("reverse", "this is a test");
if ($gmclient->returnCode() != GEARMAN_SUCCESS)
{
echo "bad return code\n";
exit;
}
exit;
?>