0

スクリプトに問題があります。解凍するときにtisスクリプトを使用します

if (file_exists($zipfile))
{
    $zip = new ZipArchive;
    if ($zip->open($zipfile) === TRUE)
    {
        if ($zip->extractTo($path) === TRUE)
            return 'file extracted';
        else
            return 'cant extract';
        $zip->close();
    }
    else
    {
        return 'cant open file 2';
    }
}
else
{
    return 'zip doesnt exist';
}

ftp を使用して抽出したファイルを削除できません。フォルダー ($path) には chmode 777 がありますが、抽出したファイルを削除しようとすると、ftp を使用してメッセージが表示されますが、ファイルをフォルダーにアップロードすると、ftp を使用してファイルを削除できます

4

3 に答える 3