Re: Is "gd" present?

From: Date: Wed, 04 Jun 2003 15:21:32 +0000
Subject: Re: Is "gd" present?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-150196@lists.php.net to get a copy of this message
This check if gd is installed and which version. if( $img = @imageCreate(1, 1) ) { // Check if GD version >= 2.0.1 // $img = @imageCreateTrueColor(1, 1); if (!$img) { echo 'gd < 2.0.1 installed'; } else { echo 'gd >= 2.0.1 installed'; } } else { echo 'No gd image tool available!'; } ----- Original Message ----- From: "CPT John W. Holmes" <holmes072000@charter.net> To: "Todd Cary" <todd@aristesoftware.com>; <php-general@lists.php.net> Sent: Wednesday, June 04, 2003 4:11 PM Subject: Re: [PHP] Is "gd" present? > > Is there a way to check within an application if the "gd" library has > > been installed? > > Maybe get_loaded_extensions() ???? > > ---John Holmes... > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > >

« previous php.general (#150196) next »