Running a php script in the background without curl -


I have a problem running a php script in the background.

I have my admin area for which to access HTTP authentication and a mail script that I want to run in the background will take a lot of time to execute this script, so I want to execute it in the background .

I think when I use the "Send" page, it executes the script sending in the background and redirects the user

although currently using curls While trying, I can not cURL in the script because it gives returns.

Any advice appreciated, thanks.

  1. Create some queue of work (writing directly on database / files / some socket).
  2. Create either a daemon (socket) or cron job that consumes those jobs.
  3. Report the employee to the database (database / file / etc), if you are required to do some work in the database, if you have the 'success' (or failure) message later.

Comments