Jump to content

Check File Type


Warptweet

Recommended Posts

yea. What AndyB said. If it has more than one dot PHP is easily capable of exploding at the first dot. It just takes a bit of code tweaking.  I would tell you how, but I feel people learn a lot more if they make an attempt, even if the attempt fails.  Take the code AndyB gave ya, and if you feel like there might be more than one dot in the file name/extension, which normally it is good pratice never to put dots in your filenames, then it is extremely easy to tweak it a bit to fit your needs.  Hope it works out for ya.

Link to comment
https://forums.phpfreaks.com/topic/49045-check-file-type/#findComment-240875
Share on other sites

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.