May I ask if my website is closed?

Source: Internet
Author: User
Tags website server
Q: How can I use code to determine whether a website is being maintained when the website server needs to be maintained, if maintenance is in progress, the page will prompt "the server is being maintained ?? I am not very grateful. I set an identifier in the file or database and add a judgment in the website header. if the identifier is true, the maintenance status is displayed. Otherwise, access is normal. a. php & lt; ask: Determine whether the website is closed
If the website server needs to be maintained, how can I use code to determine whether the website is being maintained? if the website is being maintained, I will jump to the prompt "the server is being maintained" page ?? Not very grateful
------ Solution --------------------
Set an identifier in a file or database and add a judgment in the website header. if the identifier is true, the maintenance status is displayed. Otherwise normal access
------ Solution --------------------
A. php




Other php

Include a. php
If ($ maintance) header (...)

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.