[PHP] - 파일확장자 추출 예제(사용법)
PHP 2011. 7. 19. 16:28반응형
$file = $_POST["upfile"];
$ext = substr(strrchr($file,"."),1);
$ext = strtolower($ext);
$ext = substr(strrchr($file,"."),1);
$ext = strtolower($ext);
반응형
'PHP' 카테고리의 다른 글
[PHP] - Switch Case 예제 (0) | 2011.07.19 |
---|---|
[PHP] - 파일삭제(Unlink) 사용법 (0) | 2011.07.19 |
[PHP] - PHP 태그제거 함수 사용법 (0) | 2011.07.14 |
[PHP] - Mail 함수 사용 예제 (0) | 2011.07.14 |
[PHP] - down.php 파일 소스 & 사용법 (0) | 2011.07.13 |