[snip]
I tried the php -I found php was looking for the php.ini in
/var/www/conf.
I copied php.ini from /etc/ to /var/www/conf. Now the shell_exec works
fine.
(shell_exec ("free -b")) = (exec("free -b", $data ,$result_code))
I tried using exec as
exec("free -b", $data ,$result_code));
but I didn't get the $data I was expecting. Are my variables mixed up?
[/snip]
So there WAS more than one copy of the php.ini! :)
Have you tried $data = exec("free -b"); ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php