일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
Tags
- Ajax
- KB증권
- 거제도
- jQuery
- iptime
- mysql
- 보르비스초월
- 가상서버호스팅
- 스톤에이지
- proxmox
- html/css
- 윈도우10
- 자바스크립트
- 알리익스프레스
- 소비전력
- 램가스초월
- centos
- 워드프레스
- 알뜰폰
- 킹북이초월
- 시놀로지
- ConoHa
- 리눅스
- 복현오거리
- SKT
- php
- KB국민카드
- 티스토리
- Apache
- 아파치
- Today
- Total
목록readdir (1)
맛집 여행 캠핑 일상 생활
PHP 디렉토리안에 파일 리스트 가져오기
PHP 디렉토리안에 파일 리스트 가져오기 특정 디렉토리안에 파일리스트를 가져오는 예제소스입니다.$DIR_PATH = "/var/www/html/";if(is_dir($DIR_PATH)) {if($dh = opendir($DIR_PATH)) {while(($file = readdir($dh)) !== false) {if ($file == "." || $file == "..") {continue;}$_file = $DIR_PATH.$file;if(is_file($_file)) {echo "filename: ".$_file." ";}}closedir($dh);}}
LAMP
2017. 6. 1. 11:26