Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
I'm trying to implement a php function for downloading a file from my web-site.
It is an executable.
When the file has been downloaded it its a couple of 100 bytes bigger than
it originally is.
The php code looks like this:Code: Select all
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header('Content-Type: application/exe');
header('Content-Type: application/octet-stream');
header('Content-Description: File Transfer');
header('Content-Disposition: attachment; filename="Volume.exe"');
header("Content-Transfer-Encoding: binary");
readfile('../dlf/Volume.exe');the same problem.
If a use my FTP software simply to upload and download the size
remain, as it should. It changes only when I try to download
with the php code above.
Anyone ?
Regards,
Mikael
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]