NOTICE

업로드 허용 파일

Date : 2008. 11. 1. 14:25 Category : Programming/PHP
$file = explode(".", $fileName);
$fileExtension = $file[sizeof($file)-1];
$allowedExtension = Array("jpg", "gif", "zip");

if(in_array($fileExtension, $allowedExtension)) {
   echo "true";
} else {
   echo "십생키햐";
}

100% 초보용입니다. +_+
아주 직관적이며 전혀 복잡하지도 않고~