RE: [PHP] GD GIF or PNG Detect Part 2

2001-10-29 Thread Daniel Reichenbach
> However when there are no GD libraries installed the > following error is > thrown: > Fatal error: Call to undefined function: imagetypes()… > > Any suggestions to prevent the error message being thrown. Are there > other methods to detect the presence GD libraries before > testing for GIF >

[PHP] GD GIF or PNG Detect Part 2

2001-10-29 Thread Chris
I received good advice from my previous question: Before creating a graphic, I would like to detect what type of graphic files are supported. For example if GD is enabled and GIF Support is available I'll create an GIF image. I know phpinfo() will tell me this but I don't want to burden the user w

Re: [PHP] GD Gif or PNG

2001-10-23 Thread Rasmus Lerdorf
http://www.php.net/manual/en/function.imagetypes.php On Tue, 23 Oct 2001, Chris wrote: > Before creating a graphic, I would like to detect what type of graphic > files are supported. For example if GD is enabled and GIF Support is > available I'll create an GIF image. I know phpinfo() will tell

[PHP] GD Gif or PNG

2001-10-23 Thread Chris
Before creating a graphic, I would like to detect what type of graphic files are supported. For example if GD is enabled and GIF Support is available I'll create an GIF image. I know phpinfo() will tell me this but I don't want to burden the user with this check. Any Suggestions? Chris -- P