Re: imagetypes( ) function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm running php 4.3.0 on windows 2000. The following code woks :

<?php
if (imagetypes() & IMG_PNG) {
    echo "PNG Support is enabled";
}
?>

Producing the following output :

PNG Support is enabled

The manual suggests that the imagetypes() function has been available since
php 4.0.2. But, quoting from the manual "This function returns a bit-field
corresponding to the image formats supported by the version of GD linked
into PHP. ". Have you enabled the gd2 graphics extension?

Note that in my php.ini configuration file (located in C:\WINNT) I have
enabled the gd2 graphics extension (extension=php_gd2.dll) by removing the
semi-colon from the start of the line, etc.





----- Original Message -----
From: <dpgirago@mdanderson.org>
To: <php-db@lists.php.net>
Sent: Monday, July 28, 2003 3:05 PM
Subject:  imagetypes( ) function


>
>
> Good day all,
>
> Anyone have an idea why I receive a "call to undefined function" error
message
> when I use the imagetypes() function on PHP versions 4.2.3 and 4.3.2 ??
>
> The code to test for  PNG image handling is right from the manual...
>
> <?php
>
> if ( imagetypes() & IMG_PNG)
>  {
>      echo "PNG Support enabled";
> }
>
> ?>
>
> David
>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux