I can guarante you that popen() does work - I use it myself on a win2003 server. Since you can use shell_exec() I assume this has nothing to do with safe_mode being switched on. How do you call popen() ands what kind of dos program are you calling? -----Original Message----- From: Paul J. Smith To: Svensson, B.A.T. (HKG); php-windows@xxxxxxxxxxxxx Sent: 22-5-2004 23:47 Subject: RE: Prevent error output from shell_exec I tried popen, but it doesn't run the program. I'm not sure popen works on win platforms? -----Original Message----- From: Svensson, B.A.T. (HKG) [mailto:B.A.T.Svensson@xxxxxxx] Sent: 22 May 2004 22:36 To: 'php-windows@xxxxxxxxxxxxx ' Subject: RE: Prevent error output from shell_exec Have you tried this with popen()? -----Original Message----- From: Paul J. Smith To: Jeroen Serpieters Cc: php-windows@xxxxxxxxxxxxx Sent: 22-5-2004 20:10 Subject: RE: Prevent error output from shell_exec Thanks. Spot the deliberate mistake ;) Unfortunately, in my case, it doesn't work. I still get the PSEXEC header, which is what I am trying to suppress. Any other ideas? -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php