[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 ex
Fábio Ottolini wrote:
Dear Comrades,
Can someone please explain why this is script is not working on my win2k
box with PHP 4.3.4?
list($alias, $domain) = split("@", $email);
$command = "nslookup -type=mx $domain";
exec ( $command, $result );
$i = 0;
while ( list ( $key, $value ) = each ( $
Maybe its something to do with who the system is trying to run the
command under?
I remember someone having problems try run WinZip through the exec()
command and it was down to what the service was being run under.
Tryst
-Original Message-
From: El Bekko <[EMAIL PROTECTED]>
To: php
Fábio Ottolini wrote:
To clarify it a little bit more, I have changed the code a bit:
$command = "nslookup -type=mx $domain 2>&1";
exec ( $command, $result );
print_r($result);
And the result on the browser is:
Array ( [0] => Access is denied. )
Any clues?
'>'-- Mensagem Original --
'>