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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T11:46:18+00:00 2026-05-22T11:46:18+00:00

if i call a php file via jquery ajax, that contains a script to

  • 0

if i call a php file via jquery ajax, that contains a script to do some stuff that takes a while — for instance uploading a big video — and then I close the page: does the php script keep loading the video or not?

  • 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-22T11:46:19+00:00Added an answer on May 22, 2026 at 11:46 am

    See here:
    http://php.net/manual/en/function.ignore-user-abort.php

    int ignore_user_abort ([ bool $value ] )
    

    Sets whether a client disconnect should cause a script to be aborted.

    When running PHP as a command line script, and the script’s tty goes away without the script being terminated then the script will die the next time it tries to write anything, unless value is set to TRUE

    There also is a PHP configuration option of the same name:
    http://php.net/manual/en/misc.configuration.php

    By default, if you do nothing, according to the PHP manual the default is to abort the script.
    http://php.net/manual/en/features.connection-handling.php

    NECESSARY UPDATE

    It seems I (unknowingly) tricked my way to “reputation points”, because I did NOT supply the (correct) answer, but here it is now thanks to testing and continued nudging from “mellamokb“:

    Quote:
    “Ok, I took a look at the PHP source code and, if I didn’t miss anything, I now have the answer. The “ignore_user_abort” flag is only checked when PHP receive an error trying to output something to the user. So, in my understanding, there is no way to interrupt code which doesn’t produce any output.”

    Okay, I wasn’t totally off, but it is important to know that it all depends on whether or not your script produced any output!

    If you read THIS, also DO check out the comments below.

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

Sidebar

Related Questions

I have a script that calls a php page via jquery/ajax. The results would
Initially, I used a .js file that contains AJAX functions to call a .php
i've used .load() with jquery to call a php file that will return search
Im using jquery to call a page via ajax. I have some jquery functions
I have the following PHP script being called by AJAX: <?php // file /ajax/loopback.php
I'm reading an xml file with PHP and pulling it into jQuery via a
I'm using the script from http://webdeveloperplus.com/jquery/ajax-multiple-file-upload-form-using-jquery/ I modified the onComplete to add a link
If I call a single PHP file that in turn uses GET's and POST's
I have the following code in a PHP file called via Ajax (note -
Im using arte for jquery to call a page via ajax every 10 seconds.

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.