I am developing a site where I have more downloads. Before downloading the user has to register once. I store the username in a variable. If the user has not filled in the form, he is redirected there. After filling the form I use the following:
$newpage="http://localhost/web/".$dwnloadfile;
header("Location:".$newpage);
where $dwnloadfile is the name of the pdf file.
For the first time after filling the form, I am not able to open the pdf file . It goes on for more than 20 min and finally there is an error msg saying.. the file is corrupted. But It works fine in Mozilla and netscape. where am I wrong??