MYSQL + PHP timing system function

Source: Internet
Author: User
MYSQL + PHP timing control function. For example, I have set the time to & nbsp; 18:00:00 to & nbsp; 18:00:00 to publish an article. Publishing is disabled automatically when the server time reaches 18:00:00. How to implement such a function ?, When publishing the article, determine the timing control function of & nb MYSQL + PHP.
For example:
I have set the time to 18:00:00 to 18:00:00 this time to publish an article. When the server runs until 18:00:00, publishing is automatically disabled. How to implement such a function?
------ Solution --------------------
Just judge when publishing an article.
------ Solution --------------------
Convert the server time and the above two times into a timestamp to determine whether the server time can be released within this period of time. if not, the server time cannot be released!
------ Solution --------------------
Yes, it seems that both the frontend and backend can be controlled.
------ Solution --------------------
You can restrict the buttons! You must publish an article by limiting the action.
------ Solution --------------------
It is published only when the server determines the time of submission.

When loading the page, the front-end will write the current time of the server and the time range that can be released into the js variable, and then the js will control whether to display the submit button based on the time.
It can be judged every second.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.