note 44052 added to function.readfile

From: Date: Tue, 13 Jul 2004 18:30:05 +0000
Subject: note 44052 added to function.readfile
Groups: php.notes 
Request: Send a blank email to php-notes+get-73179@lists.php.net to get a copy of this message
I setup a download using the following: header("Content-type: application/force-download"); header("Content-Transfer-Encoding: Binary"); header("Content-length: ".filesize($GenFile)); header("Content-disposition: attachment; filename=\"" . basename($GenFile) . "\""); @readfile("$GenFile"); When I click open from from the download window in Internet Explorer, the window will appear again and I have to click open again. Does anybody know what this problem is? Thanks ---- Manual Page -- http://www.php.net/manual/en/function.readfile.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+44052 Delete -- http://master.php.net/manage/user-notes.php?action=delete+44052&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+44052&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#73179) next »