Re: changing the ini from a file

From: Date: Wed, 16 Jan 2008 16:33:40 +0000
Subject: Re: changing the ini from a file
Groups: php.general 
Request: Send a blank email to php-general+get-267398@lists.php.net to get a copy of this message
---- Daniel Brown <parasane@gmail.com> wrote: > 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? > > -- LOTS of files, hence wanting to do it sporadic, mostly just for diagnostic pages. I can always just drop them and use the .htaccess to disable the prepend for that folder/files but was wondering if I could do it on the fly. Seems like the prepend can't but figured I would check with the folks here before I completely gave up.

« previous php.general (#267398) next »