Sorry for this miss addressed question, I am developing a PHP script to
let users to download content (wallpaper, tones, etc) from mobile
phones. In same cases the browser download the script.php file rather
than the content itself. Here is my script:
header("Pragma: public");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header('Cache-Control: private',false);
header('Content-Type: '.$mime);
header("Content-Type: application/force-download");
header("Content-Type: application/octet-stream");
header("Content-Type: application/download");
header("Accept-Ranges: bytes");
header("Content-Disposition: attachment;
filename=".basename($file).";");
header("Content-Transfer-Encoding: binary");
header("Content-Length: ".filesize($file));
readfile($file);
Thanks alot for any reply.
Willy