Re: changing the ini from a file
| From: | Daniel Brown | Date: | Wed, 16 Jan 2008 16:24:30 +0000 |
| Subject: | Re: changing the ini from a file | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-267397@lists.php.net to get a copy of this message | ||
On Jan 16, 2008 11:10 AM, Wolf <lonewolf@nc.rr.com> wrote:
> I'm using .htaccess to do
> php_value auto_prepend_file "auth.php"
>
> The problem is that there are very specific files that I want to be able to NOT run that in. I
> guess I could just move them to a directory and use .htaccess to perform a
> php_value auto_prepend_file ""
>
> But I was hoping to not have to make a separate folder for that. Anyone encoutered being able
> to change/disable the setting on the fly in a specific file?
At that point, wouldn't it be just as easy to <?
require('auth.php'); ?> as the first line of each file you want it in,
and omit the line in those you don't? Or are there a lot of files?
--
</Dan>
Daniel P. Brown
Senior Unix Geek and #1 Rated "Year's Coolest Guy" By Self Since
Nineteen-Seventy-[mumble].