John-E

Cant use ob_start param

Apr 11th, 2022
936
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.35 KB | None | 0 0
  1. <?php
  2.     if((!file_exists($page_part))&&($cache=='y')):
  3.         ob_start();
  4. ?>
  5. <!DOCTYPE html>
  6. <html lang="it">
  7.     <head>
  8.         <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  9. <?php
  10.         $html=sanitize_all(ob_get_contents());
  11.         $fp=fopen($page_part,'w');
  12.         fwrite($fp,$html);
  13.         fclose($fp);
  14.         ob_end_clean();
  15.     endif;
  16.     require_once($page_part);
Advertisement
Add Comment
Please, Sign In to add comment