I tried this with PHP on Linux, and it worked.
<?
$current_dir = exec("cd") ;
echo "The current directory is [$current_dir] " ;
?>
On Windows, all this returns is:
The current directory is [
Note the lack of the closing bracket...
There isn't any suspicious in the Apache log files.
I'm wondering why this won't work.
I'm using PHP 3, and Apache 1.3.12 on a windows 98 box.
This is going to be a file management piece, eventually.