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

  • Home
  • SEARCH
  • 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

Initially, I used a .js file that contains AJAX functions to call a .php
I have a script that calls a php page via jquery/ajax. The results would
I am loading a .php file via an ExtJS AJAX call like this: menuItemApplication.header.on('click',
I'm attempting to issue two concurrent AJAX requests. The first call (/ajax_test1.php) takes a
Im using arte for jquery to call a page via ajax every 10 seconds.
Do you know how can I call an ASP.NET .dll file from a PHP
I'm trying to call a php webservice using WCF. I googled some public php
Is there any way to have PHP automatically call a function, before a script
I have a script that forces a download and I make a call to
I have a remote php program that generates 2 random numbers, I call to

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.