include_once 로 처리 하였습니다. > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

include_once 로 처리 하였습니다. 정보

버그 include_once 로 처리 하였습니다.

본문

// rm -rf 옵션 : exec(), system() 함수를 사용할 수 없는 서버 또는 win32용 대체
// www.php.net 참고 : pal at degerstrom dot com
function rm_rf($file)
{
    if (file_exists($file)) {
        @chmod($file,0777);
        if (is_dir($file)) {
            $handle = opendir($file);
            while($filename = readdir($handle)) {
                if ($filename != "." && $filename != "..")
                    rm_rf("$file/$filename");
            }
            closedir($handle);
            rmdir($file);
        } else
            unlink($file);
    }
}

위 함수만을 board_delete.inc_op.php 로 만들고


board_delete.inc.php 의 해당 함수를 include_once 로 불러 옵니다
include_once "board_delete.inc_op.php";



이상없이 됩니다.
확인해 보시고, 업데이트 해 주세요.
  • 복사

댓글 전체

© SIRSOFT
현재 페이지 제일 처음으로