Everyday i learn some new :)

"Svein Larsen" <[EMAIL PROTECTED]> escribió en el mensaje
news:[EMAIL PROTECTED]
$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:[EMAIL PROTECTED]
> Sent: Wednesday, June 04, 2003 17:09
> To: [EMAIL PROTECTED]
> 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" <[EMAIL PROTECTED]> escribió en
> el mensaje news:[EMAIL PROTECTED]
> > > 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
>




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to