Z
Z
ZHDN828722018-05-19 21:54:40
PHP
ZHDN82872, 2018-05-19 21:54:40

How can I create a background process on the site?

It is required that by pressing a button on the site, after a while the value in the database changes. We want this to happen even if the user has navigated to another page or closed the site.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
ipokos, 2018-05-19
@ZHDN82872

It's not clear from the description how it should work.
As one of the options:
1)

at the click of a button on the website
write data to a separate table.
2) set the cron task to the right one
over time
, for example, every hour, minute, or the like.
3)
even if the user has moved to another page or closed the site.
cron will pull the script you need. In it, you get the data that users clicked and process it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question