I made a search in the first time, before my post, but on "download script" and some other tries I did not fiend what I wanted.
Now I used this script but on opera did not work till I removed the part with "// fix for IE catching or PHP bug issue ".
function send_file($file) {
$fname = basename($file);
if (file_exists($file)) {
// fix for IE catching or PHP bug issue
header("Pragma: public");
header("Expires: 0"); // set expiration time
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
// browser must download file from server instead of cache
// force download dialog
header("Content-Type: application/force-download");
header("Content-Type: application/octet-stream");
header("Content-Type: application/download");
header("Content-Disposition: attachment; filename=\"" . $fname . "\"");
header("Content-Length: " . filesize ($file));
header("Content-Transfer-Encoding: binary");
readfile($file);
}
else {
print("Error: Could not open the file that you specified");
}
exit;
}
10x and see ya all