note 91992 deleted from function.imagecreate by danbrown
| From: | danbrown@php.net | Date: | Fri, 03 Jul 2009 23:00:40 +0000 |
| Subject: | note 91992 deleted from function.imagecreate by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-157898@lists.php.net to get a copy of this message | ||
Note Submitter: baggins at 1337z dot com
----
In response to sk89q:
It is much easier to just do the following:
<?php
$image = imagecreatefromstring(file_get_contents('coolpic.anything'));
?>
You can obviously wrap that into a function if you so desire.