kkreft
5/8/2014 - 9:21 PM

PHP file extension

$path = $_FILES['image']['name'];
$ext = pathinfo($path, PATHINFO_EXTENSION);