dmcalerney Posted June 30, 2006 Share Posted June 30, 2006 Howdy all,I'm trying to use passthru to run a batch file that is in the same directory as my script. I keep getting the error "CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers.". I've googled for a while now but I haven't been able to find any pertinant help. Here's my simple test batch file called copy.bat.[code]copy functions.php ..\functions.phpexit[/code]Here's how I'm launching it from PHP:[code]<?phpecho passthru("start /b copy.bat > logme.txt", $return);echo "return:" . $return . "<br>";?>[/code]Here's My Specs:Windows Server 2003IIS 6PHP 4.3Looks simple enough, but I can't get past this error. Any ideas?Danny Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.