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
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);
?
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