Re: [PHP4BETA] cvs: /php4/ext/gd gd.c gdt1.h php_gd.h
| From: | (Oliver Billmann) | Date: | Thu, 04 May 2000 12:17:10 +0000 |
| Subject: | Re: [PHP4BETA] cvs: /php4/ext/gd gd.c gdt1.h php_gd.h | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-14456@lists.php.net to get a copy of this message | ||
In article <cvshholzgra957276651@cvsserver>,
hholzgra@media-engineering.de (Hartmut Holzgraefe) writes:
> hholzgra Tue May 2 07:10:51 2000 EDT
>
> Modified files:
> /php4/ext/gd gd.c gdt1.h php_gd.h
> Log:
> calling a function that is not supported in the current build due to a
> missing library or unsupported feature (especially GIF-Output)
> will now give a slightly more usefull error message than eg.
> " Call to undefined function: imagegif()"
> (this seemed to confuse a lot of users ....)
Well, to make sure my programs work with both GIF and PNG, depending on
the installed mod_php, I used the following to determine what format is
supported:
if ( function_exists ( "ImageGif" ) )
ImageGif ( $img );
else if ( function_exists ( "ImagePng" ) )
ImagePng ( $img );
Now if the function exists although there is no support compiled in,
this mechanism will fail miserably... How can I now detect whether the
mod_php supports GIF or PNG (or both)?
Oliver
--
\\\///
+--------------------+ \\// +-----------------------------+
| Oliver Billmann | ( .. ) | oliver@billix.franken.de |
+--------------------+-ooO-(__)-Ooo-+-----------------------------+