Jump to content

exec() white page


asmith

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.