Is there an equivalent for Apache auto_prepend_file in IIS 6.0
On the LAMP stack, I was able to use:
> php_value auto_prepend_file bootstrap.php
in .htaccess to load a bunch of commands that I wanted to execute before any page was rendered.
Can you do the same in IIS 6.0?
UPDATE: Not the most suitable solution, but since I have one site on this server, I just added the auto_prepend_file parameter to php.ini and restarted IIS
+2
source to share
1 answer
You can use the registry to set the configuration for each directory. Or . User.ini files (since php 5.3):
As of PHP 5.3.0, PHP includes support for .htaccess style INI files for each directory. These files are only processed by the CGI / FastCGI SAPI. This function is deprecated by the hccanner PECL extension. If you are using Apache use .htaccess files for the same effect.
+1
source to share