Jump to content

php image type refference


Iluvatar+

Recommended Posts

That "image/jpeg" comes from the browser, not from PHP. Besides the fact that it's totally untrustworthy, not all browsers will call an image by the same name.

 

Use a function like getimagesize to independently check (a) that it's an image and (b) what type of image it is.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.