note 21342 added to ref.image
| From: | stenius at subdimension dot com | Date: | Thu, 09 May 2002 07:55:58 +0000 |
| Subject: | note 21342 added to ref.image | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-30368@lists.php.net to get a copy of this message | ||
In reply to 'check for GD support':
Instead of looking for the existence of the 'imagetypes' function, you may go check the
fact straight off with:
'$gd_loaded = extension_loaded( "gd" );'
Here's a little nice snippet to see what extensions and functions are currently available:
echo "\n\n<p><table border=\"1\">\n";
$extensions = get_loaded_extensions();
foreach( $extensions as $extension )
{
echo "<tr>\n\t<td
valign=\"top\"><b>$extension</b></td>\n\t<td>";
$functions = get_extension_funcs( $extension );
foreach( $functions as $function )
{
echo "$function<br-tag>";
}
echo "</td>\n</tr>\n";
}
The result is a rough table with all extensions functions listed.
Happy coding ;o)
--
http://www.php.net/manual/en/ref.image.php
http://master.php.net/manage/user-notes.php?action=edit+21342
http://master.php.net/manage/user-notes.php?action=delete+21342
http://master.php.net/manage/user-notes.php?action=reject+21342