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 (...)