Created
October 2, 2015 09:44
-
-
Save simonwelsh/529e35ddabc77b8fbcf1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$client = new Client('unix:///var/run/hhvm/hhvm.sock', -1); | |
$client->setConnectTimeout(86400 * 1000); | |
$client->setReadWriteTimeout(86400 * 1000); | |
$response = $client->request([ | |
'QUERY_STRING' => '', | |
'REQUEST_METHOD' => 'GET', | |
'SCRIPT_FILENAME' => '/var/www/hrmweb/includes/run_job.php', | |
'SCRIPT_NAME' => '/run_job.php', | |
'REQUEST_URI' => '/' . (int)$id, | |
'DOCUMENT_URI' => '', | |
'DOCUMENT_ROOT' => '/var/www/hrmweb/includes', | |
'SERVER_PROTOCOAL' => 'HTTP/1.1', | |
'GATEWAY_INTERFACE' => 'CGI/1.1', | |
'SERVER_SOFTWARE' => 'resque-runner', | |
'REMOTE_ADDR' => '127.0.0.1', | |
'REMOTE_PORT' => '3457', | |
'SERVER_ADDR' => '127.0.0.1', | |
'SERVER_PORT' => '3457', | |
'SERVER_NAME' => 'localhost', | |
], ''); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment