// Other variables $MAX_FILENAME_LENGTH = 260; $file_name = $_FILES[$upload_name][\'name\']; //echo \"testing-\".$file_name.\"\"; //$file_name = strtolower
Everyone else has already given you the reason you're getting an error, but here's the best way to do what you want to do: $file_extension = pathinfo($file_name, PATHINFO_EXTENSION);
$file_extension = pathinfo($file_name, PATHINFO_EXTENSION);