note 50431 added to install.windows

From: Date: Mon, 28 Feb 2005 15:41:21 +0000
Subject: note 50431 added to install.windows
Groups: php.notes 
Request: Send a blank email to php-notes+get-85662@lists.php.net to get a copy of this message
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! ---- Manual Page -- http://www.php.net/manual/en/install.windows.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+50431 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+50431&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+50431&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+50431&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+50431&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+50431&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+50431&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#85662) next »