[snip]
Has anyone been able to get PHP working fully under IIS 6.0?  If so, try

the following script:

<?PHP
print_r(shell_exec('dir'));
?>

I get "Warning: shell_exec() [function.shell-exec]: Unable to execute" 
whenever I try this or any other shell_exec or back tick (`) shell
function.

I've tried running in IIS 5.0 isolation mode, and setting all kinds of 
execution permissions to no avail.
[/snip]

6.0 or 5.0 (you mention both)?

AFAIK print_r(shell_exec('dir')); will not work for several reasons...

shell_exec(`dir`) would not return an array, so print_r for that would
be unable to execute. Have you tried opendir() and readdir()? That is
the way to get a directory listing.

Try this;

$var = shell_exec(`dir`);
echo $var;

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to