exec() under win2000 & apache not works?

From: Date: Tue, 28 May 2002 07:11:51 +0000
Subject: exec() under win2000 & apache not works?
Groups: php.general 
Request: Send a blank email to php-general+get-99463@lists.php.net to get a copy of this message
Hi! My problem is: I'm traying to use the following commandos under win2000 / apache / php4.0.6: <? // for testing if CMD works or not: $cmd_commando = "cmd /c echo My Name is Adrian"; passthru($cmd_commando); // the 'hot' commando for CMD: $cmd_commando = "cmd /c xcopy C:\php\INPUT\* C:\php\OUTPUT\* /w /f /i /s /e /h /y"; passthru($cmd_commando); ?> Actualy the first 'test'-commando response the defined text 'My Name is Adrian' ... so far so good. But if i have a look on my Windows-Explorer for checking the Directory and files under 'C:\php\OUTPUT\*', (there shut be the same structure as in the 'C:\php\INPUT\*')there is nothing. Also i used the following methodes without any success: 'shell_exec();' and 'system();'. Where am i wrong or what shut i do for success?? Thanx for your answer! Greatings --- Adrian Christen / acn@sinteg.ch

« previous php.general (#99463) next »