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 7553323
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T11:01:04+00:00 2026-05-30T11:01:04+00:00

We need to untar/unzip a very large archive file on a server that we

  • 0

We need to untar/unzip a very large archive file on a server that we don’t have SSH access to. One of our alternative options is to execute a system command via PHP to unzip the file.

The problem is that its takes quite a while to unzip/untar the file. PHP ends up timing out before it completes.

Is there a way to make the untar command execute fully whether or not the PHP script times out or not? Like an Asynchronous execution?

Or how can you temporarily set the PHP timeout period to be extremely high so that it has enough time to finish untarring the file?

  • 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-05-30T11:01:06+00:00Added an answer on May 30, 2026 at 11:01 am

    From the manual:

    The set_time_limit() function and the configuration directive
    max_execution_time only affect the execution time of the script
    itself. Any time spent on activity that happens outside the execution
    of the script such as system calls using system(), stream operations,
    database queries, etc. is not included when determining the maximum
    time that the script has been running. This is not true on Windows
    where the measured time is real.

    What may be happening is that your client (browser) is timing out. Such a disconnection may cause the script to abort. To prevent that, you can do:

    ignore_user_abort(true);
    

    You’ll then want a second script that allows you to check the progress. One idea is to have the output of tar written to a file that your second script can check the end of to see if it’s done. Another is to invoke a shell script that in turns runs tar. That shell script could either check the return code and touch a file with its results or it could create a rudimentary lock file while it is working.

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

Sidebar

Related Questions

I need to untar a multiple-file archive. And I have to use a binary
need a little help with this one. I have a form that I am
Need some help, please. I have a line of horizontal thumbnails loaded as ONE
I have almost tar.gz file. I need to skip some bytes before unpacking and
I want to essentially make it so that you never need to unzip/unrar any
Need to use own imaged markers instead built-in pins. I have several questions. 1.
need a quick help here. I have a series of hyperlinks all with the
Need some help to solve this. I have a gridview and inside the gridview
Ok, I need to be able to edit the file comments in .rar files
Need some insight on how this works I have the following piece of code

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.