note 16043 added to function.imagejpeg

From: Date: Sun, 14 Oct 2001 09:58:49 +0000
Subject: note 16043 added to function.imagejpeg
Groups: php.notes 
Request: Send a blank email to php-notes+get-18900@lists.php.net to get a copy of this message
After spending some time getting a basic function to resize images for thumbnails, I noticed that when the user went to "save picture as" the default filename was always the same as the name of your script. Use the following header functions to work around this (documented in the HTTP section of the manual). header( "Content-Disposition: attachment; filename=$YOUR_FILENAME" ); header( "Content-Description: PHP Generated Image" ); -- http://www.php.net/manual/en/function.imagejpeg.php http://master.php.net/manage/user-notes.php?action=edit+16043 http://master.php.net/manage/user-notes.php?action=delete+16043 http://master.php.net/manage/user-notes.php?action=reject+16043

« previous php.notes (#18900) next »