[EMAIL PROTECTED] (BAMHA Mostafa Ftmms) wrote in
6F80F42D4777D4119359001083FCBB9E138CF2@ISSYNTSF02:">news:6F80F42D4777D4119359001083FCBB9E138CF2@ISSYNTSF02:
> The program i tested is very simple. This is the php code
><?
> echo "test ...";
> exec("dir c:\\");
> ?>
> ##################
you can't find dir.exe, dir.com, dir.bat in path of your computer.
"dir" is a command of cmd.exe or command.com
if your system is a NT compatible,
then source code is exec("cmd /c dir c:\\' );
but this result is not displayed.
exec() parameter must exist.
rewriten source
exec( "cmd /c dir c:\\", $b);
for ( $i=0;$i<sizeof($b);$i++ ) {
echo htmlspecialchars(trim($b[$i]))."<br>";
}
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]