Posted by vamichael on 05/04/06 07:32
I tried your suggestion and it still didn't work. My latest attempt
looks like:
<?php
$file_access_name='testdl.exe';
$file_download_name='testdl.exe';
$file_length = filesize($file_access_name);
header("Content-disposition: filename=$file_download_name");
header("Content-type: application/octetstream");
header("Pragma: no-cache");
header("Expires: 0");
header("Content-Length: ".$file_length);
readfile($file_access_name);
?>
I'm beginning to suspect it might be a problem with my web host
provider. Could someone test this on their server and let me know if
it works? thanks!
Navigation:
[Reply to this message]
|