hi guy's!
i'm i made a user-profiles system
on my site and part of it
should send users a download of a file
but i dont want the users to see the source link
for the file so i used
"headers". the problem is that the first download works
well but the following get stuck, and users cant download
two files in one login!
here is the source of the relevant part:
(...)
header ("Content-Type: application/octet-stream");
header ("Content-Length: ".filesize($filelocation));
header ("Content-Disposition: attachment; filename=$filename");
header ("Content-Description: $filename");
@readfile($filelocation);
(...) exit;
have i missed any part? maybe there are header properties
i havent heard about???
the problem as i explained earlier is that when
the user clicks a link on a page
(a href= download.php?fileID=3) a file download dialog box
showes up i dowload the file... but the second time i try
to do that the dialogbox just keeps waiting for something
"Getting file information: download.php?fileID=3"
and it keeps waiting forever! what is the problem?
i really need your help! please!
Best regards to the members, alex.