Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Movie Maniac?
November 19, 2004, 6:28 pm
rate this thread
I'm writing a module for postnuke and MD-Pro to manage a subtitles
section, and I'm experiencing some troubles with the download
It works properly if I click directly on the download link.
but I'm trying to do a redirect page, so that when the user clicks on
the link, a popup came on displaying a short text message, and after a
few seconds the download starts automatically.
Well, with firefox everything works fine, while with IE 6.0 (with all
upgrades installed), there's no way to let the browser display the
I use this piece of code to send headers to the browser:
// Now we send the file
Header("Content-Type: ".$filetype."; name=".$filename);
Header("Content-Disposition: attachment; filename=".$filename.";
Header("Content-Description: downloaded from".pnGetBaseURL());
IE always shows:
type: PHP file
while firefox shows correct informations.
The link that points to the file is:
were SITENAME and subtitlesID are dinamic fields.
As redirecting sistem, I use this line of code in the popup window:
<META HTTP-EQUIV="refresh" content="5;
Anyone can help?
- » how to get massive amounts of info from the database?
- — Previous thread in » PHP Scripting Forum
- » ssh on command line: force using a group size (prime size) of 1024 (and no...
- — The site's Newest Thread. Posted in » Secure Shell Forum