note 104147 added to function.imagecreatefromjpeg
| From: | hope at it-helps dot com | Date: | Thu, 26 May 2011 11:29:33 +0000 |
| Subject: | note 104147 added to function.imagecreatefromjpeg | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-180052@lists.php.net to get a copy of this message | ||
Create an image resource from file, without knowing image type:
function imagecreatefromfile($imagepath=false) {
if(!$imagepath || !$is_readable($imagepath) return false;
return @imagecreatefromstring(file_get_contents($imagepath));
}
$img_resource=imagecreatefromfile($imagepath);
----
Server IP: 217.160.235.204
Probable Submitter: 217.92.116.116
----
Manual Page -- http://www.php.net/manual/en/function.imagecreatefromjpeg.php
Edit -- https://master.php.net/note/edit/104147
Del: integrated -- https://master.php.net/note/delete/104147/integrated
Del: useless -- https://master.php.net/note/delete/104147/useless
Del: bad code -- https://master.php.net/note/delete/104147/bad+code
Del: spam -- https://master.php.net/note/delete/104147/spam
Del: non-english -- https://master.php.net/note/delete/104147/non-english
Del: in docs -- https://master.php.net/note/delete/104147/in+docs
Del: other reasons-- https://master.php.net/note/delete/104147
Reject -- https://master.php.net/note/reject/104147
Search -- https://master.php.net/manage/user-notes.php