asmith Posted December 12, 2009 Share Posted December 12, 2009 Hi, I have a vps and as root, (on my CLI: 'php -a'), I run this code: exec('/home/public_html/programs/execFile', $output); echo '<pre>'.print_r($output,true).'</pre>'; and it works fine and prints the data it supposed to show. I put same code in a php script an run it, it gives me: Array ( ) Someone told me the php from CLI has different php.ini than the one webserver uses. The php.ini I know is located at: /etc/php5/cgi/php.ini and safe_mod is off there. Any idea? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.