function gd_enabled() { if (extension_loaded('gd') && function_exists('gd_info')) { return true; } else { return false; } }