$time_cache || !file_exists($cachefile)) { ob_start(); $url = 'http://9xxx.net/player/xfile.php?q='.$q; $result = file_get_contents($url); echo $result; //Stop Cachefile $fp = fopen($cachefile, 'w'); fwrite($fp, ob_get_contents()); fclose($fp); ob_end_flush(); } else { echo file_get_contents($cachefile); echo "^^\n"; } ?>