PHP Code:
<?php
$dir = 'my/dir/and/stuff/'; //set directory. Use two [single] quotes for blank.
if (!isset($_GET['file'])) { die('No file specified.'); }
$file = $dir.$_GET['file'];
if (file_exists($file)) { die('File does not exist.'); }
header('Content-type: movie/wmv'); //completely random guess-- look this up on google
header('Content-length: '.filesize($file));
readfile($file);
?>
Just call that then with:
myphp.php?file=filename.wmv
Embed that on the page, and I think it should work.
However, this doesn't give all that much security, since it can be accessed just like any other link. I'm not sure if that's your goal, though.
Bookmarks