Hi All
I am trying to create a page that will automatically refresh itself after a sort period of time. I have used meta tags to acheive this effect and it works well on both linux and OSX. The problem is that under windows IE the page refreshes so quickly that it is impossible to see anything. It appears that IE completely ignores the time delay setting in the refresh header. I have tried using both <meta> tags and header() but the result is the same. Is the refresh <meta> tag incompatable with IE?
regards, Ben
Code:<?php error_reporting(E_ALL); //header('refresh', '10; url=adsl-cpanel.php'); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <meta http-equiv="refresh" content="10; url=adsl-cpanel.php"> <title>ADSL Control Panel</title> <style type="text/css"> .status { position: absolute; border-width: 2px; border-style: solid; border-color: black; padding: 10px; background-color: #f3f3f3; } </style> </head> <body> <div style="position: absolute; top: 20px; left: 20px; height: auto; width: auto;"> <?php /* Determine if connection exists */ //echo exec("/sbin/ifconfig ppp0"); $adsl_status = exec('/sbin/ifconfig ppp0 > /dev/null; echo $?'); if ($adsl_status == 0) { $image = 'adsl_on.jpg'; $status_text = "ADSL connected"; } else { $image = 'adsl_off.jpg'; $status_text = "ADSL not connected"; } ?> <h2>ADSL CONNECTION</h2><br> <div class="status"> <img class="status_light" src="<?php echo $image; ?>" height="20" width="20"> <?php echo $status_text; ?><br> <div> <div style="position: absolute; top: 100px; left: 0px;"> <a href="adsl-onoff.php?status=<?php echo $adsl_status; ?>"><img class="onoff" src="button.gif"> Start/Stop ADSL Connection</a> </div> </div> </body> </html>








Bookmarks