|
|
|
14년 전
|
조회 2,522
|
|
|
|
14년 전
|
조회 1,218
|
|
|
|
14년 전
|
조회 998
|
|
|
|
14년 전
|
조회 1,569
|
|
|
|
14년 전
|
조회 822
|
|
|
|
14년 전
|
조회 965
|
|
|
|
14년 전
|
조회 1,600
|
|
|
|
14년 전
|
조회 893
|
|
|
|
14년 전
|
조회 1,574
|
|
|
|
14년 전
|
조회 1,206
|
|
|
|
14년 전
|
조회 986
|
|
|
|
14년 전
|
조회 1,543
|
|
|
|
14년 전
|
조회 901
|
|
|
|
14년 전
|
조회 1,032
|
|
|
|
14년 전
|
조회 1,981
|
|
|
|
14년 전
|
조회 1,552
|
|
|
|
14년 전
|
조회 970
|
|
|
|
14년 전
|
조회 1,749
|
|
|
|
14년 전
|
조회 1,550
|
|
|
|
14년 전
|
조회 998
|
댓글 2개
<?php
$g4_path = '.';
include $g4_path.'/common.php';
$file_dir = "$g4[path]/data/file";
unlink_inside_dir($file_dir);
unlink($file_dir);
function unlink_inside_dir($dir)
{
$d = dir($dir);
while ($entry=$d->read()) {
if ($entry=='.' || $entry=='..') continue;
if (is_dir($dir.DIRECTORY_SEPARATOR.$entry)) unlink_inside_dir($dir.DIRECTORY_SEPARATOR.$entry);
else unlink($dir.DIRECTORY_SEPARATOR.$entry);
}
}
?>
[/code]
위의 코드대로 파일을 그누 폴더에 만들고 실행하세요.
SSH 접속 된다면 SSH 접속 후
( 그누보드 root 기준 )
cd data
ls
여기서, 원하는 폴더를 ls 명령어로 찾습니다.
그다음
rm-rf 폴더명
하시면 됩니다.