Re: Is "gd" present?

From: Date: Wed, 04 Jun 2003 15:21:59 +0000
Subject: Re: Is "gd" present?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-150200@lists.php.net to get a copy of this message
Everyday i learn some new :) "Svein Larsen" <svein@custompublish.com> escribió en el mensaje news:002d01c32aad$1b7bc1b0$70a4a1d5@custompue6s8p2... $gd_loaded = (extension_loaded('gd'))?1:0; Then you can use if ($gd_loaded) later in your code. - Svein > -----Original Message----- > From: Esteban Fernandez [mailto:efernandez@tecsol.cl] > Sent: Wednesday, June 04, 2003 17:09 > To: php-general@lists.php.net > Subject: Re: [PHP] Is "gd" present? > > > Also works... :) > > <?php > $array = get_loaded_extensions(); > for ($i=0;$i<=count($array);$i++) { > if ("gd" == $array[$i]) $installed = true; > else $installed = false; > } > if ($installed = true) echo "yeah... GD installed"; > else echo "shit.. GD not installed."; > ?> > > Regards. > EF. > > > "Cpt John W. Holmes" <holmes072000@charter.net> escribió en > el mensaje news:00bd01c32aa3$2840b130$a629089b@TBHHCCDR... > > > 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 (#150200) next »