RE: [PHP-WIN] exec() problem
| From: | Jay Blanchard | Date: | Wed, 21 Dec 2005 15:30:42 +0000 |
| Subject: | RE: [PHP-WIN] exec() problem | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-26588@lists.php.net to get a copy of this message | ||
[snip]
The same script works fine in another win2k box running PHP version 5.
Strange
is that if I add print $result; right after exec ( $command, $result );
nothing is printed. When the script runs on the machine that works it prints
Array obviously. So, my guess is that $command is never being executed.
BTW, PHP is not running on safe_mode and the nslookup command works fine
on both machines.
[/snip]
Make sure that PHP is running with safe_mode 'off' in the ini