Hi all, I want to retrieve the contents of a dir, so i use C:/WINNT/system32/cmd.exe /C dir /b e:\logs1\ to do that. the command works on the cli of win2k. The server is running win2k + Apache 1.3.14 + PHP-4.0.4pl1 I receive the following error: Warning: Unable to fork [C:/WINNT/system32/cmd.exe /C dir /b e:\logs1\] in c:/www/apache/htdocs/counter-stats/test.php on line 3 The complete script is: <? <? //include("config.inc"); exec("C:/WINNT/system32/cmd.exe /C dir /b e:\\logs1\\", $arr); print_r($arr); ?> tia, Kees Hoekzema -- PHP General 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]