November 24th, 1999, 06:38 AM
I'm using php4 b2 and apache. In my php.ini the auto_prepend_file is pointing to a small php script (it's a simple counter). But for example in htdocs/mypage i don't want the prepend file.
I thought a simple solution would be to create .htaccess file. I've created such one in "mypage" dir with the following line:
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre>php_value auto_prepend_file none[/quote]
according to http://www.php.net/manual/configuration.php3 that line in .htaccess is correct. Or maybe it's wrong?
In apache config file i have AllowOverride set to None it that ok?
December 2nd, 1999, 08:32 PM
You cannot config Apache to AllowOverrides = None, then expect to override with a .htaccess. You might want to change your Apache config to allow for different settings in the various directories that you wish to use .htaccess files. If you have access to the httpd.conf file, it is worth your while to scrap all of your .htaccess files and build those settings into the config file - this is a much faster option.