Re: [phplib] protecting served files/images/mp3.... From: Alex Black (enigma <email protected>)
Date: 05/22/01

I think you might be much better off just moving the files out of your
document root, and building a page that just pipes through the content of
the file after doing a "permission" check to see if it's allowed.

Agreed, a class that sens the right mime headers based on the filename of
best guess at its contents would be cool.

I'm doing essentially the same thing with gifs stored in a database, and it
works like a charm, and the html is simple:

<img src="foo.php">

_alex

--
alex black, ceo
enigma <email protected>

the turing studio, inc. http://www.turingstudio.com

vox+510.666.0074 fax+510.666.0093

--------------------------------------------------------------------- To unsubscribe, e-mail: phplib-unsubscribe <email protected> For additional commands, e-mail: phplib-help <email protected>