Content Header

From: Date: Wed, 20 Jul 2005 14:32:35 +0000
Subject: Content Header
Groups: php.general 
Request: Send a blank email to php-general+get-219061@lists.php.net to get a copy of this message
Hello! I currently have a script which streams data out of a MySQL database, and prints the content headers correctly, however, when I use the following line: header("Content-Disposition: attachment; filename=\"". $filename ."\""); it prompts the user to download the file each time they go to the site. The problem is, I want the filename to be in the header, incase somebody right clicks and saves the file, but I don't want the user to be prompted to download the file when they're just trying to look at it. Does anybody know a way I can achieve this result? Thank you! Christopher J. Umina

« previous php.general (#219061) next »