---- Daniel Brown <[EMAIL PROTECTED]> wrote: 
> On Jan 16, 2008 11:33 AM, Wolf <[EMAIL PROTECTED]> wrote:
> > ---- Daniel Brown <[EMAIL PROTECTED]> 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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to