note 16043 deleted from function.imagejpeg by jimw

From: Date: Thu, 20 Dec 2001 20:34:17 +0000
Subject: note 16043 deleted from function.imagejpeg by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-23403@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" );

« previous php.notes (#23403) next »