note 99102 added to function.imagegif
| From: | grantk dot at osu1 dot php dot net | Date: | Tue, 27 Jul 2010 17:46:31 +0000 |
| Subject: | note 99102 added to function.imagegif | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-171176@lists.php.net to get a copy of this message | ||
It should be noted that if you only want to "save" the file, and not display it to the
browser, you should catch the imagegif into a variable.
Example:
//Only saves the file to a destination, no display
$image_value = imagegif($image, $save_file_to_path);
//Saves file and attempts to display it, but will throw an error message
imagegif($image, $save_file_to_path);
//Only displays, never saves as a file
imagegif($image);
//Note: In the third example, for displaying only, it is probably good to use the
"header('Content-type: image/gif'); declaration, but it's not needed in the
first example for saving as a .gif file.
----
Server IP: 69.147.83.197
Probable Submitter: 173.31.65.95
----
Manual Page -- http://www.php.net/manual/en/function.imagegif.php
Edit -- https://master.php.net/note/edit/99102
Del: integrated -- https://master.php.net/note/delete/99102/integrated
Del: useless -- https://master.php.net/note/delete/99102/useless
Del: bad code -- https://master.php.net/note/delete/99102/bad+code
Del: spam -- https://master.php.net/note/delete/99102/spam
Del: non-english -- https://master.php.net/note/delete/99102/non-english
Del: in docs -- https://master.php.net/note/delete/99102/in+docs
Del: other reasons-- https://master.php.net/note/delete/99102
Reject -- https://master.php.net/note/reject/99102
Search -- https://master.php.net/manage/user-notes.php