Re: changing the ini from a file

From: Date: Wed, 16 Jan 2008 17:03:52 +0000
Subject: Re: changing the ini from a file
Groups: php.general 
Request: Send a blank email to php-general+get-267403@lists.php.net to get a copy of this message
---- Daniel Brown <parasane@gmail.com> wrote: > On Jan 16, 2008 11:33 AM, Wolf <lonewolf@nc.rr.com> wrote: > > ---- Daniel Brown <parasane@gmail.com> wrote: > [snip] > > > 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. > > If it's strictly for testing purposes, you could use a switch to > include a file. This is NOT SAFE, and NOT SANITIZED, so read it as a > DISCLAIMER: NOT FOR PRODUCTION USE. Just to get that out of the way > for the lawyers out there. Not clean, not pretty, not anything more > than a hack job. Maybe a suggestion that could lead you to a better > idea though. > <!-- SNIP! --> I'm trying to NOT prepend the file, not have to modify every other file out there. I'd use other includes if that was the case, but I don't need them, so it's more along the lines of disabling something preset for the site for a few files. Wolf

« previous php.general (#267403) next »