December 18, 2009

To see what the status is for your GD

Run this function which is pretty straight forward to see what the status is for your GD :-)
function showGDinformation()
{
echo "GD support on your server: ";

// Check if the function gd_info exists (great way to know if gd is istalled)
if(function_exists("gd_info"))
{
echo "YES";
$gd = gd_info();

// Show status of all values that might be supported(unsupported)
foreach($gd as $key => $value)
{
echo "
" . $key . ": ";
if($value)
echo "YES";
else
echo "NO";
}
}
else
echo "NO";
}

No comments:

Post a Comment