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

WBOY
Release: 2016-07-25 09:05:51
Original
1011 people have browsed it
  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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template