Jump to content

I need a PHP or HTML script that..


Recommended Posts

All those are options on how to refresh the page. But you need PHP to keep track on if it's been refreshed...

 

You can try this:

<?php
  session_start();
  if(empty($_SESSION['refreshed'])){
    $refresh = '<meta http-equiv="refresh" content="30;url='.$_SERVER['REQUEST_URI'].'"/>';
    $_SESSION['refreshed'] = true;
  }else{
    $_SESSION['refreshed'] = null;
    $refresh = '';
  }
?>
<html>
  <head>
<?php echo $refresh;?>
..rest of code here...

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.