I might found the answer myself but correct me if I'm wrong: I was trying to pass some args (ex. echo testing) that I tried to exec but fail. But, if I put the "echo testing" inside a batch file and have the exec to call that batch file, then it works.
There is also a function call escapeshellcmd to screen out any bad tricks. If there is other better ways to do thing, please share. Thanks. --Wo ----- Original Message ----- From: "Wo Chang" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, July 11, 2002 11:38 AM Subject: can you do exec under Windows OS? > Dear All, > > Sorry to ask this simple question! > > I know I can do exec under unix OS but > when I try it on Windows platform (running > Apache), PHP gives me "Warning: Unable to fork". > > Off hand I don't remember do I need to > modify the php.ini or semething else, > can someone give me a hand? > > Thanks! > > --Wo > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php