![]() |
Having trouble with Custom Function "isImage"
PHP Code:
What is the problem here! One more thing, is it case sensitive? |
What are you trying to accomplish with the following?
PHP Code:
PHP Code:
|
Quote:
|
The extension of a file does not prove that it contains an image. Even better is to determine the MIME type or to use exif_imagetype() and check if it has returned false.
|
For getting the MIME type, I would suggest using getimagesize():
PHP Code:
|
| All times are GMT. The time now is 09:47 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0