Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8161541
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T18:31:16+00:00 2026-06-06T18:31:16+00:00

I am using ZipArchive to incrementally zip a site. I call the script multiple

  • 0

I am using ZipArchive to incrementally zip a site. I call the script multiple times to ensure it doesn’t exceed to php max execution time.

This works fine on most web hosts. However for some hosts, calling close() on the archive is incredibly slow and results in the execution time being exceeded.

For example, on one host with a 30 second max execution time, I zip for 20 seconds and then call close but it does not make it in time.

I have tried PCLZip as an alternative. It is reliable but it is shockingly slow in comparison.

Any ideas on why it behaves this way and how it could be worked around?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T18:31:17+00:00Added an answer on June 6, 2026 at 6:31 pm

    Try running fopen/fwrite/fclose over ftp for example. You’ll notice fopen and fclose take a while to execute while fwrite is instant.

    You might say “that can’t be right” fwrite sends the data over ftp everytime. I don’t know if it does or not but i bet it doesn’t and fclose sends all the batch work.

    In a simmilar fashion ZipArchive::close may be finishing up everything you’ve structured till then and merging it into the final file.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using the PHP ZipArchive class to create a ZIP archive. The archive
I am using PHP's ZipArchive class to create a zip file containing photos and
I am using a php script to unzip ZIP file. but this script unzip
I'm trying to download multiple files in a zip archive using PHP/codeigniter.This code works
How to schedule a task to linux server system using php script? For example,
I am using the PHP zipArchive class to uncompress files and store them on
I would like to create a zip file in memory using a ZipArchive (or
I'm using ZipArchive within a Code Igniter framework PHP Application. It's working fine to
I am using http://sharpcompress.codeplex.com/ to compress a directory: using (var archive = ZipArchive.Create()) {
Is it possible to create a ZIP archive using IO::Compress::Zip without retaining the full

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.