note 31385 deleted from function.imagecreatetruecolor by didou
| From: | didou@php.net | Date: | Thu, 29 May 2003 20:14:15 +0000 |
| Subject: | note 31385 deleted from function.imagecreatetruecolor by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-49289@lists.php.net to get a copy of this message | ||
Note Submitter: webmaster@webYourPhotos.info
----
Hi mike from prag,
your solution is great. I was looking for days to find a way, cause function_exists does not work
with GD in most cases.
Now i use the following code:
$imTest1 = @imagecreatetruecolor(12,12);
if ($imTest1) {echo "Der Befehl imagecreatetruecolor funktioniert auf Ihrem Server, and will be
used"; $versionGD = 2; }
else { $imTest2 = @imagecreate(12,12);
if ($imTest2) {echo "Der Befehl imagecreate funktioniert auf Ihrem Server, and will be
used"; $versionGD = 1; }
else {echo "<br>the GD library seems not to be installed on your Server - sorry
that will not work...<br>"; $versionGD = 0; } }