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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T15:42:36+00:00 2026-05-27T15:42:36+00:00

I have no experience with PHP and I am wondering if this is possible:

  • 0

I have no experience with PHP and I am wondering if this is possible:

I want to start a background PHP process when a user fetches a page. This process would check whether some delay has expired (for example a timestamp in a file) and execute accordingly. The page can ‘return’ before the process has finished its execution.

Is this realistic and if yes, how should I proceed? What would be the code to launch the process when the page is fetched? Thanks.

  • 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-27T15:42:37+00:00Added an answer on May 27, 2026 at 3:42 pm

    It is possible if your php is not limited for safety (and you have a CLI version of PHP installed too). Just run a new php process:

    shell_exec('nohup php /absolute/path/to/your/script.php > /dev/null &');
    

    Note the &. That will cause the process to run in the background. You can replace /dev/null with a filename to log the output. Also, if “php” doesn’t work, try /usr/bin/php or php-cli.

    Alternatively, you can just make an Ajax request from user’s browser when the page loads. That request can take as long as needed (granted that the web server is configured properly) and will be completely invisible to the user.

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

Sidebar

Related Questions

Possible Duplicate: PHP page redirect I have 0 experience with PHP. I was setting
Does anyone have any experience with php-ews? I would like to add a new
I have experience in PHP, JSP/servelts and classic ASP, and I am trying to
Does anyone have any experience using PHP to send an sms via skype I
I am used to developing in PHP/MySQL and have no experience developing with SQL
I am a web-developer working in PHP. I have some limited experience with using
I am a PHP programmer. I have no .Net coding experience (last seen it
Anyone have experience with this plugin? I have it installed but I have no
anyone have experience doing this? when i say imaginary i mean the square root
IS php is Comfortable with ORACLE?I have an experience of PHP + mysql ,

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.