note 21342 rejected from ref.image by victor
| From: | victor@php.net | Date: | Mon, 09 Dec 2002 18:37:15 +0000 |
| Subject: | note 21342 rejected from ref.image by victor | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-40591@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)