ciao a tutti,
ho un problema con mio script mi salva alcuni pagine con <3 bytes> che sono voti.
Codice PHP:
$cache_file = dirname(__FILE__) . '/altro.htm';
$cache_time = 60 * 60; // in seconds
if (is_readable($cache_file) && (filemtime($cache_file) > time() - $cache_time)) {
include($cache_file);
exit();
}
function cache($content) {
global $cache_file;
file_put_contents($cache_file, $content);
return $content;
}
ob_start('cache');
come posso fari per farlo che salva solo pagene con un dimensione che superiori 15 bytes.
ciao e grazie