RE: [PHP] I think this is a bug...cant use exec commands.
| From: | Jay Blanchard | Date: | Fri, 02 Apr 2004 15:16:47 +0000 |
| Subject: | RE: [PHP] I think this is a bug...cant use exec commands. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-182134@lists.php.net to get a copy of this message | ||
[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"); ?