[PHP-DB] .htaccess and db authentication

2002-10-14 Thread Adam Royle
I was wondering about people's thoughts on file security through php using database authentication. Take the following example: I have a folder (in webroot) called /videos/ which contains a heap of files like so: video_1_14-06-2002.mpg video_2_15-06-2002.mpg video_3_16-06-2002.mpg

Re: [PHP-DB] .htaccess and db authentication

2002-10-14 Thread Marco Tabini
How about using PHP as a pipe to funnel the MPG files through: ? // Place your security logic here and exit if // auth is not successful // $filename is the path of the file // to server header (Content Type:video/mpeg); readfile ($filename); ?

RE: [PHP-DB] .htaccess and db authentication

2002-10-14 Thread John W. Holmes
the appropriate header for the file and use readfile() to send the data. ---John Holmes... -Original Message- From: Adam Royle [mailto:[EMAIL PROTECTED]] Sent: Monday, October 14, 2002 8:59 AM To: [EMAIL PROTECTED] Subject: [PHP-DB] .htaccess and db authentication I was wondering about