what about this?
http://www.philipsdomain.com/hyperlinks/ for a redirect sample.
----- Original Message -----
From: "Ed Lazor" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 11, 2002 11:30 AM
Subject: [PHP] file redirect?
> I'm trying to figure something out and thought I'd see if you guys have
> The goal: tracking the number of downloads for files on the server.
> The approach: routing file downloads through /download.php like this:
> new window and use a meta tag to redirect to the file in question, like
> print "<meta http-equiv='refresh' content='0; URL=$destination'>";
> This works, but it's really slow, because it usually takes a while to open
> a new browser window.
> I found another approach, but couldn't get it to work:
> $content_type = "Content-type: application/zip";
> header("Content-disposition: filename=".$filename);
> It seemed I got close at one point... it would open a File Save window,
> the file would end up as 0 bytes in size.
> My preference is using the second approach if I can get it working,
> it's much faster than opening a new browser window. Any ideas of how to
> make it work?
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php