Re: [PHP] protecting downloads with php

2002-05-12 Thread Peter H. Lemieux
) or by HTTP upload, you'll find the file's MIME type in the session headers. Since most people's mail or web client runs on the same machine as their application, these headers are usually pretty accurate. Peter - Original Message - From: "Nick Wilson" <[EMAIL P

Re: [PHP] protecting downloads with php

2002-05-11 Thread Miguel Cruz
On Sat, 11 May 2002, Nick Wilson wrote: > Does anyone know of somewhere that lists content-type's? Apache comes with a file in conf/mime.types that lists a lot of standard ones. miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] protecting downloads with php

2002-05-11 Thread Miguel Cruz
> anything). > > ---John Holmes... > > > -Original Message- > > From: Miguel Cruz [mailto:[EMAIL PROTECTED]] > > Sent: Saturday, May 11, 2002 2:23 AM > > To: PHP-General > > Subject: Re: [PHP] protecting downloads with php > > > >

Re: [PHP] protecting downloads with php

2002-05-11 Thread Steve Overall
sage - From: "Nick Wilson" <[EMAIL PROTECTED]> To: "PHP-General" <[EMAIL PROTECTED]> Sent: Saturday, May 11, 2002 2:44 AM Subject: Re: [PHP] protecting downloads with php > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > > * and then Miguel C

Re: [PHP] protecting downloads with php

2002-05-11 Thread Steve Overall
attachment; filename=$f"); fpassthru($file_output); } } } // end function show_file() // If you're tracking the user through his or her session, then passing the file through the script lets you track which users are viewing or downloading which files as well as regulating access to tho

RE: [PHP] protecting downloads with php

2002-05-11 Thread John Holmes
2 2:23 AM > To: PHP-General > Subject: Re: [PHP] protecting downloads with php > > On Sat, 11 May 2002, Nick Wilson wrote: > > I've been asked to protect an area containing 'course material' (pdf's > > etc) and have just thought of a gaping hole in what I&#

RE: [PHP] protecting downloads with php

2002-05-11 Thread John Holmes
Either store your files in the database (I hate saying that), or use .htaccess to protect the directory. ---John Holmes... > -Original Message- > From: Nick Wilson [mailto:[EMAIL PROTECTED]] > Sent: Saturday, May 11, 2002 1:59 AM > To: php-general > Subject: [PHP] prote

Re: [PHP] protecting downloads with php

2002-05-11 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Miguel Cruz declared > > I use an class to handle all the auth stuff and each page checks the > > value of $obj->logged_in :: No problem. > > > > but what if someone links to www.thesite/theProtectedArea/file.tar.gz > > > > that file

Re: [PHP] protecting downloads with php

2002-05-11 Thread Miguel Cruz
On Sat, 11 May 2002, Nick Wilson wrote: > I've been asked to protect an area containing 'course material' (pdf's > etc) and have just thought of a gaping hole in what I've done. > > I use an class to handle all the auth stuff and each page checks the > value of $obj->logged_in :: No problem. > >

[PHP] protecting downloads with php

2002-05-11 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all I've been asked to protect an area containing 'course material' (pdf's etc) and have just thought of a gaping hole in what I've done. I use an class to handle all the auth stuff and each page checks the value of $obj->logged_in :: No problem.