Windows 2000 program execution fails

From: Date: Tue, 16 Jan 2001 12:14:24 +0000
Subject: Windows 2000 program execution fails
Groups: php.general 
Request: Send a blank email to php-general+get-34804@lists.php.net to get a copy of this message
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

« previous php.general (#34804) next »