Advertisement
Shockrate

cache - Dopo

Oct 5th, 2016
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. // IN FONDO PAGINA
  2. <?php
  3. ######## Your Website Content Ends here #########
  4.  
  5. if (!is_dir($cache_folder)) { //create a new folder if we need to
  6. mkdir($cache_folder);
  7. }
  8. if(!$ignore){
  9. $fp = fopen($cache_file, 'w'); //open file for writing
  10. fwrite($fp, ob_get_contents()); //write contents of the output buffer in Cache file
  11. fclose($fp); //Close file pointer
  12. }
  13. ob_end_flush(); //Flush and turn off output buffering
  14.  
  15. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement