note 78218 deleted from install.windows.apache2 by nlopess

From: Date: Fri, 05 Oct 2007 12:05:49 +0000
Subject: note 78218 deleted from install.windows.apache2 by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-131133@lists.php.net to get a copy of this message
Note Submitter: packard_bell_nec at hotmail dot com ---- If you install PHP as an Apache CGI binary, you can add: AddHandler cgi-script .php into Apache httpd.conf, and add shebang line to every PHP scripts like: #!php-cgi <?php phpinfo(); ?> . But adding shebang line has a disadvantage that if you decided to install PHP as an Apache module afterwards, then the shebang line WILL appear in the web page. In fact, you do NOT need to add shebang line to every PHP script even if you install PHP as an Apache CGI binary, because you can add: ScriptInterpreterSource Registry-Strict into Apache httpd.conf, and make the registry file and merge it like: Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\.php\Shell\ExecCGI\Command] @="\"C:\\Program Files\\PHP\\php-cgi.exe\"" . Then you will NOT need to change the PHP scripts which do not contain shebang line.

« previous php.notes (#131133) next »