You must do authorization, then force a file download, and you want to also display a link to the file with the typical "click the link below if the download does not start automatically". I couldn't figure out how to display a page (after authorization), then use the PHP header redirect to force the download while keeping the same page display. However, using a meta refresh to a script that forced the download (without producing any display) was an easy solution.
You're missing the point of what Chris is saying.
<meta http-equiv="refresh" content="10;URL=http://example.org/">
and
header('Refresh: 10;URL=http://example.org/');
are both doing the same thing just in different ways. The http-equiv meta tag was created to allow static HTML pages to specify HTTP headers. With PHP you don't need to use that, you can actually send the browser the actual header. IMHO it's a better way to do it, but I can't actually see a reason why I feel that way.
-- Stuart
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php