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? Link to comment https://forums.phpfreaks.com/topic/184891-exec-white-page/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.