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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T22:44:30+00:00 2026-06-12T22:44:30+00:00

I have a php file , For example http://domain.com/user?id=uniquetoken ,When user visits that url

  • 0

I have a php file , For example http://domain.com/user?id=uniquetoken ,When user visits that url with unique token it does lots of stuffs using javascript and php and it takes atleast 2 minutes to complete a certain task.If the user is not patient and closes the window that task is not performed at all, What i need is when the user just visit http://domain.com/user?id=token , the task must me done in background.so even if user closes the window the task should be completed by php in backend,

I have some ideas like , file_get_contents, will that complete the task completely?Any ideas or suggestion please?

edit :
Somebody tell me if file_get_contents(http://domain.com/user?id=token) , another php file works? even after they close it immediately?? i have enabled ignore_user_abort().

  • 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-12T22:44:31+00:00Added an answer on June 12, 2026 at 10:44 pm

    when user visits http://domain.com/user?id=token just call an exec() on the php script you want to run.

    If a program is started with this function, in order for it to continue running in the background, the output of the program must be redirected to a file or another output stream. Once exec() is started with output redirection, it will continue to execute in server even if user closes the browser.

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

Sidebar

Related Questions

I have a file with .php extention www.example.com/thefile.php?name=123 that I want to direct the
I have a project that lives at the following domain: http://www.example.com/PROJECT/ within project, there
Suppose I have a example.php file like that: <p> <?php echo _('Hello world') ?>
For example I have in a conf.php file: $GLOBALS[no_access] = '^forbidden|restricted|xampp|apache\_pb'; blocking these files/folders
If I have three files index.php file.php and fns.php First example (it works): index.php
I have a PHP file that contains a large array (about 90KB). I'm considering
How do I create a php file redirect.php That takes 1 input parameter URL,
Having no luck removing the index.php file from the url. For example I want
I have a directory /public_html/myfolder/ and I want my domain www.example.com to point to
I have a coreFunctions.php file that contains most of my key functions and I

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.