What is the best way to find the last occurence of a . in a file name?
So like if my user submits My.File.zip how would I find the . right before the zip?
The reason I'm asking (maybe there is a different answer to this) is because I want to be able to accept odd file types that aren't defined in PHP like models, .mdl. But PHP identifies this is as application/octet-stream along with any other file types it doesn't understand.
Thanks in advance.