note 25046 added to function.readfile

From: Date: Mon, 09 Sep 2002 08:13:17 +0000
Subject: note 25046 added to function.readfile
Groups: php.notes 
Request: Send a blank email to php-notes+get-36379@lists.php.net to get a copy of this message
Anybody gota clue? I Added code like ... header("Content-type: audio/mpeg"); $size = filesize("files/$filename"); header("Content-Length: $size"); header("Content-Disposition: attachment; filename=$filename"); if (@readfile("files/$filename")) { ... } Problem is... when the user hits the cancel button, the browser crashes (e.g. I can't use any links on the original page) I would really appreciate any help... Geoffrey -- http://www.php.net/manual/en/function.readfile.php http://master.php.net/manage/user-notes.php?action=edit+25046 http://master.php.net/manage/user-notes.php?action=delete+25046 http://master.php.net/manage/user-notes.php?action=reject+25046

« previous php.notes (#36379) next »