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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T12:02:37+00:00 2026-06-11T12:02:37+00:00

In my php project i should have some background process , but in safe

  • 0

In my php project i should have some background process , but in safe mode , because I’m running it on a shared host.

For example my background process code is in the file bg.php and I want it to be executed , write at finish of another specific script.( or maybe with some delay )
I searched a lot. some suggested libraries like beanstalkd but i think this library is heavy for my simple background process and also doesn’t have good doc for PHP. some others said functions like exec() which is not possible in safe mode.

  • 1- Does anyone have a simple solution for this problem?
  • 2- I were also mentioned by cron jobs existing in cpanel which
    prepare tasks to be executed on a specific time. can I use this
    option to solve my problem in some way?

I noted I want a simple and lightweight solution. any suggestions appreciated deeply.

  • 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-11T12:02:38+00:00Added an answer on June 11, 2026 at 12:02 pm

    It’s not possible use a PHP file served by a HTTP Server because all proceses will die after the request end.

    So cPanel cron is a good option, you don’t need to have the cron entry always enable, just setup once the entry and disable it after the script start to run.

    Only you’ll need add & at the end of your cron command to make it run as background.

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

Sidebar

Related Questions

Hi I am quite new to php but i have been following some tutorials
In my PHP project I have two different models that have a function with
I develop some PHP project on Linux platform. Are there any disadvantages of putting
I have a PHP project setup in Netbeans (v6.8) where all the PHP files
I'm working on a PHP project running on Windows and it would be so
I have a message box in my project if one have to check some
I have made a little framework for php. In this project I have the
I'm taking a break from Project Euler to learn some PHP/HTML for kicks and
I have entity Product and entity Subcategory : Subcategory.php namespace Project\Entities; /** * Subcategory
I have some documents I want to install (using the Setup project) onto a

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.