I have used all the domestic CMS to implement the WordPress-like timed release function in PHP. the timer function is triggered by the user-triggered JavaScript.
However, WordPress can be accurate to the second. If no one accesses it, it will be released on time. how can this problem be solved?
Do you think of a solution together? If you cannot find a solution, let's talk about the JavaScript trigger principle.
Reply to discussion (solution)
No. the wordpress server is constantly refreshing.
Isn't WordPress a blog system written in php? Let's see how he did it.
Since no one visits (including you, of course), how do you know?He released it on time.? Instead of completing access
You may already have records in the database at the time of release, but will not read future records when reading the page. Therefore, the records will only be displayed on the page at the specified time.
First, write it into the database to hide it. When someone else watches the news, make a current time to determine whether it is flushed out.