note 80383 added to function.exif-imagetype
| From: | tom dot ghyselinck at telenet dot be | Date: | Sun, 13 Jan 2008 09:36:23 +0000 |
| Subject: | note 80383 added to function.exif-imagetype | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-135065@lists.php.net to get a copy of this message | ||
If the function exif_imagetype() is not available,
you can try the following workaround:
if ( ! function_exists( 'exif_imagetype' ) ) {
function exif_imagetype ( $filename ) {
if ( ( list($width, $height, $type, $attr) = getimagesize( $filename ) ) !== false ) {
return $type;
}
return false;
}
}
----
Server IP: 87.238.162.147
Probable Submitter: 81.164.101.171
----
Manual Page -- http://www.php.net/manual/en/function.exif-imagetype.php
Edit -- https://master.php.net/note/edit/80383
Del: integrated -- https://master.php.net/note/delete/80383/integrated
Del: useless -- https://master.php.net/note/delete/80383/useless
Del: bad code -- https://master.php.net/note/delete/80383/bad+code
Del: spam -- https://master.php.net/note/delete/80383/spam
Del: non-english -- https://master.php.net/note/delete/80383/non-english
Del: in docs -- https://master.php.net/note/delete/80383/in+docs
Del: other reasons-- https://master.php.net/note/delete/80383
Reject -- https://master.php.net/note/reject/80383
Search -- https://master.php.net/manage/user-notes.php