Hi people, how are you all ...
iam working on MP3 library online, i have made a file: loader.php to pass to it some variables :
1- file=filename
2-filenames=the name i want to appear at the end user.
now the problem is, whenever i click on the link to the loader.php file, and pass the variables values, it works fine on some systems, and some others it ask to download ...!!! any idea how to solve the problem, if you know the code of loader.php is:
if (!$file || !$filenames){
echo("please specify the file information");
exit();
}
$place="/home/myhost/public_html/ver/";
$total=$place.$file;
Header ("Content-Type: audio/mp3");
Header ("Content-Length: ".filesize($total));
Header("Content-Disposition: inline; filename=$filenames.mp3");
readfile($total);
and there is one more problem,
when it works fine "stream, not download" then the file name on the Windows Media Player is always: loader ... it never comes the right file name,
so please help me finish my suffering 🙂
and thanks alot in advance for all ....
peace ...