Re: Why doesn't this code work?

From: Date: Fri, 30 Jan 2015 23:54:09 +0000
Subject: Re: Why doesn't this code work?
References: 1 2 3 4 5 6 7 8  Groups: php.general 
Request: Send a blank email to php-general+get-324345@lists.php.net to get a copy of this message
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

« previous php.general (#324345) next »