how can i hide a actutal media link let says www.domain.com/video/22.flv how can i reach taht file as www.domain.com/file.php?ID=5 and then use that for the embed flash player flv="www.domain.com/file.php?ID=5" ..then finally how to make force the download link of media file www.domain.com/dl.php?ID=5 so that it force it to download i dont mind using database or anything... please help
in file.php get the real address from db and then add header for flash : header("Content-Type: video/x-flv"); PHP: then all you have to do is print the real address , ok let me give you the code,all the code would be something like this : $file="www.domain.com/video/22.flv"; header("Content-Type: video/x-flv"); header('Content-Length: ' . filesize($file)); @readfile($file); } PHP: that's it
i dont' really get what u saying... its using the same file.php for multi file from multi external links and any type of media file basically i want to give the flv url through webadresss http://domain.com/tube/play.php?id=56 then on that play the flash player should read this flv="http://domain.com/tube/file.php?id=56" now if somoene click on "download" it should go to http://domain.com/tube/dl.php?id=56 and force the download whats the coding for file.php and whats the coding for dl.php