Forgive the top-post.
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.
Thanks Jason.
If I wanted to use exec() for this project in the future, is:
(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?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php