note 50431 rejected from install.windows by nlopess

From: Date: Mon, 28 Feb 2005 16:31:59 +0000
Subject: note 50431 rejected from install.windows by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-85668@lists.php.net to get a copy of this message
Note Submitter: patrick at massareal dot nl ---- i want to run an executeble throug PHP, but just can't get past this error: ****************************************** Security Alert! The PHP CGI cannot be accessed directly. This PHP CGI binary was compiled with force-cgi-redirect enabled. This means that a page will only be served up if the REDIRECT_STATUS CGI variable is set, e.g. via an Apache Action directive. ****************************************** I have Windows 2003 Sever with IIS6, with PHP intergated(not Apache!) i've tried to put the file into the windows\system32\ with this script: <? $WshShell = new COM("WScript.Shell"); $oExec = $WshShell->Run("ut2004.exe", 3, true); ?> And i tried this script: <?php echo exec('ut2004.exe') ?> ** And i'm wondering how to give it extra commands (like -mod=my_mod.ini -user=admin) Any advice or solution is welcome!

« previous php.notes (#85668) next »