note 25234 added to function.imagecreatetruecolor
| From: | php at REMOVEreallynicejerk dot com | Date: | Sun, 15 Sep 2002 21:01:32 +0000 |
| Subject: | note 25234 added to function.imagecreatetruecolor | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-36711@lists.php.net to get a copy of this message | ||
Why not just use function_exists?
http://www.php.net/function_exists
Just because they have version 2.0 GD doesn't mean that they haven't disabled that
function.
Also instead of determining which one you have on your machine and then writing setup specific code,
you can write a universal code usable on either setups.
::pseudo code::
if (function_exists(imagecreatetruecolor)){
use imagecreatetruecolor()
}else{
use imagecreate()
}
--
http://www.php.net/manual/en/function.imagecreatetruecolor.php
http://master.php.net/manage/user-notes.php?action=edit+25234
http://master.php.net/manage/user-notes.php?action=delete+25234
http://master.php.net/manage/user-notes.php?action=reject+25234