[eluser]Amir Bukhari[/eluser]
Code:
$file = $media->filepath;
$data = file_get_contents(SITE_BASE.$file);
force_download("media_file_$id.rm", $data);
the file got download correctly and it is a RM file.
but real player can not open it. then i figured there is a white space at the begining of the file, which is not part of the content. after removing the that white space realplayer can play the file.
if any of PHP file include a white space then header() function should complain about it.
any help?