couldnt you just have:
PHP Code:
$id=$_GET['id']; switch($id) { case 'video_id_5622': header('Content-Type: video/x-flv'); readfile('/home/username/securefolder/video.flv'); break; case 'video_id_546545': header('Content-Type: video/x-flv'); readfile('/home/username/securefolder/video2.flv'); break; }
or soemthing like that but maybe done via database would be better.
and if u store them in a folder before the public_html they can only be accessed via PHP
this should keep the source from public view and (i think)
you could just use the url for the video as video.php?id=video_id_659626g
and it should then read the .flv into the php and work as if you linking directly to the .flv
i think in theory this should work.
and if its differant video types then just do a quick google for "content-type video format
__________________
Discounted Web Hosting With XDnet! >> Get 25% of hosting~ Promo: Webmaster-talk <<
|