Languages(29)
-
php 서버 시간 설정 관련 오류 (strtotime,date ..)
아래는 strtotime 함수가 얽혀서 웹서버의 오류 기록(error log)에 남은 경고문이다. PHP Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Seoul' for 'KS..
2012.11.20 -
html 태그 제거
html 태그 제거 strip_tags ($변수);
2012.11.20 -
html 태그를 특수기호 (&npsp; 등) 으로 변환 및 복원
변환 htmlspecialchars($변수); 복원 htmlspecialchars_decode($변수);
2012.11.20 -
php로 엑셀 작성시 숫자를 텍스트 형으로 출력
내부 테이블 작성시 다음과 같이 셀에 태그를 추가해준다. 00123456
2012.11.20 -
대소문자 변환
소문자로 변환 strtolower(변수); 대문자로 변환 strtoupper(변수);
2012.11.20 -
특정 디렉토리를 하위디렉토리까지 완전삭제
특정 디렉토리를 하위디렉토리까지 완전삭제 function zRmDir($path) { $del_count=$del_size=0; if(is_dir($path)){ $directory = dir($path); while($entry = $directory->read()) { if ($entry != "." && $entry != "..") { if (Is_Dir($path."/".$entry)) { $temp=zRmDir($path."/".$entry); $del_count+=$temp[0]; $del_size+=$temp[1]; } else { $del_count++; $del_size+=filesize($path."/".$entry); @UnLink ($path."/".$entry); } } } $di..
2012.11.20