Re: Why doesn't this code work?

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

 



Abdul Abdul wrote:

> Thanks for your support. It seems that I had to add the extension ".tiff"
> to the image, since the image is of this type.
> 
> Now, the program returns "8", which seems to be the number that refers to
> the type "tiff".
> 
> Thanks a lot for your kind support.
> 
> I was walking through an example that didn't insert the extension of the
> image. Why should I include it here explicitly?

Because exif_imagetype() expects a filename as parameter (see
<http://php.net/manual/en/function.exif-imagetype.php>), and any
extension is part of the filename.

-- 
Christoph M. Becker


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





[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux