I have this file on my server to control my Philips Hue lights.
From the shell I run php huecli.php -i IP -k KEY ...
it will output the proper result but when I run the following as a PHP Script, it fails (times out)
$output = shell_exec('php huecli.php ...');
echo "<pre>$output</pre>";
When I stop the script from running, I see there are a lot of outputs that look like:
X-Powered-By: PHP/5.5.30
Content-type: text/html