Create your maintenance page with PHP

With maintenance page created, it is very helpful for a web programmer to perform the maintenance and other task if it is needed.

Actually it is very easy to create maintenance page for a PHP script, all you need is create a simple maintenance page with image or meaningful word with maintenance.html and php script with maintenance.php.

I will not going to teach you to create the maintenance.html where you may just put it as “ is under maintenance” or whatever.

Today, I will guide you the script of the maintenance function in maintenance.php.

function maintenance($mode = FALSE){


Go to your index.php or any other index handler page, add this to the line just after the PHP open tag.

Then, if you wish to enter maintenance mode, just add the following line after the require_once line.

Published by

Mick Genie

Mick Genie is the founder of and working at ExaBytes Network Sdn Bhd and WPWebHost web host company. He is expertise in Windows and Linux environment especially web hosting related information, tips and trick as well as the IT Information.

3 thoughts on “Create your maintenance page with PHP”

  1. Pingback:

Comments are closed.