RE: [PHP] I think this is a bug...cant use exec commands.
| From: | Brian Duke | Date: | Fri, 02 Apr 2004 15:09:36 +0000 |
| Subject: | RE: [PHP] I think this is a bug...cant use exec commands. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-182130@lists.php.net to get a copy of this message | ||
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?