zip 아카이브를 업로드하는 중 다음과 같은 오류가 발생합니다.thumbs.db 업로드 루틴이 엉망입니다
Warning: ZipArchive::extractTo(C:\xampplite\htdocs\testsite/wp-content/themes/mytheme//styles\mytheme/Thumbs.db) [ziparchive.extractto]: failed to open stream: Permission denied in C:\xampplite\htdocs\testsite\wp-content\themes\mythem\uploader.php on line 17
내가 확실히 파악할 수 문제는 난 그냥 이러한 오류를 얻을, 우편 아카이브 또는 (업로드가 아직 처리 생성 된 대상 폴더 중 하나에에서 Thumbs.db 파일을 볼 수 없다는 것입니다).
기능은 라인 (17)이 주석 아래에있다가 ...
function openZip($file_to_open) {
global $target;
$zip = new ZipArchive();
$x = $zip->open($file_to_open);
if($x === true) {
$zip->extractTo($target); //this is line 17
$zip->close();
unlink($file_to_open);
} else {
die("There was a problem. Please try again!");
}
}
C : \ xampplite \ htdocs를 \ 실험 사이트/WP - 콘텐츠/테마/mytheme/myupgradefile.zip –
음, 어쩌면, 혼합 슬래시 및 백 슬래시 문자로 경로를 처리하는 방법을 창 모른다 일부 사용자는 여기에서 도울 수 있습니다. 은 존재하는 C : \ xampplite \ htdocs \ testsite/wp-content/themes/mytheme 디렉토리입니까? 아파치가 그것에 글을 쓸 수 있습니까? – kodisha
혼합 슬래시가 PHP에서 괜찮습니다. –