Wat im actually trying to do is hide the url of the actual binary file and check the validity of the referrer url .
i heard flush and ob_flush but im too inexperienced to code it out just 15 days old 😛
Here is the code i came up with till now , the binary file i might be using may be jpeg or any media file and it shud stream
<?php
#Take the file
$fileIn=$_SERVER['QUERY_STRING'];
#secure directory
$way='/secure/forbidden/';
$file='c:/xampp/htdocs'.$way.$fileIn.'.flv';
#get file size
$len = filesize($file);
$filename = basename($file);
$file_extension = strtolower(substr(strrchr($filename,"."),1));
$content = file_get_contents($file);
$etag = '"'.md5($content).'"';
header("ETag: {$etag}");
header("Content-Type: text/plain; charset=UTF-8");
header("Content-Length: {$len}");
header("Accept-Ranges: bytes");
header("Content-Transfer-Encoding: binary");
print $content;
?>
Hope i wud get a workaround with all you guys around 😃