Re: Why doesn't this code work?
| From: | Ashley Sheridan | Date: | Fri, 30 Jan 2015 16:55:49 +0000 |
| Subject: | Re: Why doesn't this code work? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-324338@lists.php.net to get a copy of this message | ||
On 30 January 2015 16:39:18 GMT+00:00, Abdul Abdul <abdul.sw84@gmail.com> wrote:
>Thanks for your reply. I get a blank screen.
>
>On Fri, Jan 30, 2015 at 6:33 AM, Ashley Sheridan
><ash@ashleysheridan.co.uk>
>wrote:
>
>>
>>
>> On 30 January 2015 14:26:51 GMT+00:00, Abdul Abdul
><abdul.sw84@gmail.com>
>> wrote:
>> >Hello,
>> >
>> >I have the following PHP script, where I'm trying to retrieve the
>image
>> >type. Why doesn't it work? What am I doing wrong?
>> >
>> ><?php
>> >$image="4.2.06"
>> >$imagetype = exif_imagetype($image);
>> >echo "Image type is: " $imagetype;
>> >?>
>> >
>> >Thanks.
>>
>> What does "doesn't work" mean? What output are you getting? Are there
>any
>> errors or warnings in your logs?
>>
>> Thanks,
>> Ash
>>
What do your error logs say?
Thanks,
Ash