Hi forum-folks
Is it an arror of my client-computer or a server error?
I cannot download the packages - each (forward)-downdoad quits with the message: Site cold'nt be opened, not Available.
IE: the (non-Working) Meta-Refresh shows the URL:
http://www.phpclasses.org/browse/packag ... -03-13.zip
The (working) direct-download-Link is the same:
http://www.phpclasses.org/browse/packag ... -03-13.zip
Maybe it's a ZoneAlarm-Setting?
I don't know...
DIRK
Downloads are not working?
Moderator: General Moderators
Quote from user-notes in http://www.php.net/header?
Something I am using this for image-downloads - works in all browser I've tested it with (IE, Netscape, Mozilla, Opera)There is this nasty bug in IE 5 for Windows prior to service pack 2, described in Microsoft knowledgebase article Q281197 which causes a problem with redirecting.. if you submit a POST form to a page that uses header() to redirect to another page after processing the form data, then IE will not display some of the images on the page, if the user has an "external HTTP namespace handler" (RealDownload for example) installed. It took me a very long time to figure this out; I had no idea why my ads weren't displaying on IE for windows but worked fine everywhere else.
Code: Select all
<?php
if ($download)
{
header("Cache-control: private");
header("Content-type: application/octet-stream");
header("Content-Disposition: attachment; filename=".$image[name].".jpg");
header("Content-length: ".filesize($filename)."\n");
//send file contents
$fp=fopen($filename, "r");
fpassthru($fp);
}
?>