[PHP] exec() under win2000 apache not works?

2002-05-28 Thread Posteingang
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\*

Re: [PHP] exec() under win2000 apache not works?

2002-05-28 Thread Stuart Dallas
Posteingang [EMAIL PROTECTED] wrote: $cmd_commando = cmd /c xcopy C:\php\INPUT\* C:\php\OUTPUT\* /w /f /i /s /e /h /y; You need to escape your backslashes... $cmd_commando = cmd /c xcopy C:\\php\\INPUT\\* C:\\php\\OUTPUT\\* /w /f /i /s /e /h /y; Also, make sure the account Apache is