php: is gd library installed?

by prettyscripts on 2008-12-11 14:11:21

php

to check if the server has gd library,

PHP:

if (extension_loaded("gd"))
    echo "yes!";

another way is to check any gd related function, eg

Code:

if (function_exists("gd_info"))
    echo "yes!";

Tags: gd, image, php

No feedback yet

Leave a comment


Your email address will not be revealed on this site.
PoorExcellent
note: all comments are moderated. do not spam and do not advertise. only comments relevant to the post will be published.
(Line breaks become <br />)
(For my next comment on this site)
(Allow users to contact me through a message form -- Your email will not be revealed!)