Forum Moderators: coopster
<?php
$fileCache = "/home/site/www/cache/acache.html";
ob_flush();if(is_writable($fileCache)) file_put_contents($fileCache, ob_get_flush());
?>
Any ideas? It just doesn't seem to be saving the file.
Quote from the manual on ob_flush():
This function will send the contents of the output buffer (if any). If you want to further process the buffer's contents you have to call ob_get_contents() before ob_flush() as the buffer contents are discarded after ob_flush() is called.