12345678910111213141516171819202122232425262728 |
- <?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;
- ?>
|