include_once("CreateZipFile.inc.php"); $createZipFile=new CreateZipFile; $directoryToZip="repository"; $outputDir="."; $zipName="CreateZipFileWithPHP.zip"; if(ZIP_DIR) { //Code toZip a directory and all its files/subdirectories $createZipFile->zipDirectory($directoryToZip,$outputDir); }else { //? } $createZipFile->forceDownload($zipName);
Ten skrypt działa w miarę przy 2-3 tys plików. Lecz nie jest to jeszcze ten rezultat, który chcę osiągnąć. Przy większej ilości plików dostaję błąd
Fatal error: Maximum execution time of 360 seconds exceeded in C:\xampp\htdocs\filemanager\CreateZipFile.inc.php on line 92
Czy znacie jakieś rozwiązanie tego problemu? Może jakieś party by się robiły z zipa nie wiem sam, pomóżcie.
http://pastebin.com/iHfT6x69 kod CreateZipFile.inc.php