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" <[EMAIL PROTECTED]>
To: "Todd Cary" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
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
> 
> 
> 
> 


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

Reply via email to