Hello, could someone help me with a code, please? I have some protected files on my site, wich I only give access after purchases. Bellow is the code I'm using right now, but some MAC users told me that the file-name on the SAVE window, shows as xxxxx.php instead of the correct one. On my PC with IE6.0 it works, but on Netscape won't. Any ideas? Also, GetItRight won't resume the downloads, is there an way to add this option? Thank you guys. Regards, WilliamK
The code:
$size=filesize($filename);
$filename2 = substr($file,$j);
header("Cache-control: private");
header('Content-Type: application/zip');
header("Content-Disposition: attachment; filename=" . $filename2);
header('Accept-Ranges: bytes');
header('Content-Length: ' . $size);
readfile($filename);