Archive for November, 2009

How to identify the file extension of an uploaded file PHP

Wednesday, November 11th, 2009

$ext = strtolower(substr(strrchr($file[’name’], ‘.’), 1));