note 41728 added to function.header

From: Date: Wed, 21 Apr 2004 01:49:08 +0000
Subject: note 41728 added to function.header
Groups: php.notes 
Request: Send a blank email to php-notes+get-68403@lists.php.net to get a copy of this message
In response to the contribution from motion at abv dot bg (16 Apr 2004): thank you, this works great for forcing a 'save' prompt for all downloads. Note however that I needed to add a readfile() command after the header() commands to make this script work, eg readfile($output_file). When I included the script without the readfile() command, I got 'could not open the file' errors when I tried to open downloaded files. ---- Manual Page -- http://www.php.net/manual/en/function.header.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+41728 Delete -- http://master.php.net/manage/user-notes.php?action=delete+41728&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+41728&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#68403) next »