Hi Guys,
I have a site, which every morning, as soon as the first person logs onto the site actions several function including generating reports etc. This process takes around 45-50 seconds.
I have put this into a popup window, thinking that it could display a message and action the functions.
This is the code for the popup page:
<html><head><title>Popup</title></head><link rel="stylesheet" href="https://<?php print $HTTP_HOST; ?>/style.css">
<body bgcolor="699AB6" marginheight=5 topmargin=5 marginwidth=5 leftmargin=5 <? $todayint = date("w", time());if (($num_maintenance_main==0)&&(($todayint!=0)&&($todayint!=6))) {echo"onload=\"window.close()\"";}?>>
<br><div align="center"><table id="message"><tr><td id="message" align="center">Please Wait...<br><br>This site is currently doing it's scheduled maintenance.<br>It should take no longer than 45 seconds.</td></tr></table></div>
</body></html>
<?php include ('maintenance.php'); ?>
However, it only displays a blank page and then closes after it's finished. Does anyone know how to get this message displayed before it starts actioning the functions?
Cheers
Mark