Date: 11/15/00
- Next message: nathan r. hruby: "Re: [phplib] protecting folders with phplib"
- Previous message: White, Bob: "[phplib] How can I populate a select box from a db query?"
- Next in thread: nathan r. hruby: "Re: [phplib] protecting folders with phplib"
- Reply: nathan r. hruby: "Re: [phplib] protecting folders with phplib"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Daniel Bondurant <bondu <email protected>> writes:
> is there anyway to protect an entire folder with phplib?
> I have a bunch of binary files that I want to limit access to.
>
> They are (mostly) thumbnails of images, and the orginal images, and I will
> be displaying 30 at a time.
> I could use fread to pull the thumbnails out of a protected directory, but
> that would be 30 authentications (plus the page itself) for each page. Is
> there any way to give authenticate the entire folder, and all it's contents
> with phplib without excessive authenticating?
I don't think PHPLib is the right answer for you. Maybe you
should check .htaccess functionality, if you are using Apache,
or equivalent for some other web server. After thinking a
little about your problem, I really don't see how PHPLib could
protect the complete content of the directory (a user can
always type http://www.tralala.com/dir/image01.gif and avoid
PHPLib auth.)
If you are trying to avoid .htaccess-like type of
authentification, maybe you could try with mod_rewrite, and
rewrite every URL in affected directories to point to the PHPLib
protected file.
-- Besplatno kopiranje Linux distribucija i softwarea [Novi Mandrake, RedHat, Debian, ...] http://www.inet.hr/~dcengija/--------------------------------------------------------------------- To unsubscribe, e-mail: phplib-unsubscribe <email protected> For additional commands, e-mail: phplib-help <email protected>
- Next message: nathan r. hruby: "Re: [phplib] protecting folders with phplib"
- Previous message: White, Bob: "[phplib] How can I populate a select box from a db query?"
- Next in thread: nathan r. hruby: "Re: [phplib] protecting folders with phplib"
- Reply: nathan r. hruby: "Re: [phplib] protecting folders with phplib"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

