php obtaining complex file extension like mysql-5.0.1.tar.gz

Posted by uday on Stack Overflow See other posts from Stack Overflow or by uday
Published on 2010-06-03T12:43:31Z Indexed on 2010/06/03 12:44 UTC
Read the original article Hit count: 178

Filed under:
|
|

I've run into a typical problem here. Till now i was doing

strstr($filename,".");

$filename is the file i got from $_FILE i.e uploaded file.It was running fine until i hit a filename of the type i mentioned. Even doing

pathinfo($filename);

gives me

.gz 

I need to see whether it is EXACTLY

.tar.gz

© Stack Overflow or respective owner

Related posts about php

Related posts about file