Home >Backend Development >PHP Tutorial >How to automatically generate static pages on a virtual host at regular intervals

How to automatically generate static pages on a virtual host at regular intervals

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-07-25 09:05:511042browse
  1. $nowtime=time();

  2. $pastsec = $nowtime – $_GET["t"];

  3. if($ pastsec<60)

  4. {
  5. exit; //Update once every minute, the time can be adjusted by yourself
  6. }

  7. ob_start(); //Open the buffer

  8. include("index.php") ;
  9. $content = ob_get_contents(); //Get the contents of the buffer
  10. $content .= “n