Page is a not externally linkable
- Code, Content, and Presentation
-- PHP Server Side Scripting
---- Basic cache using ob flush


tfk11 - 4:07 am on Nov 30, 2009 (gmt 0)


You're flushing the buffer before writing the file so you're writing an empty buffer.

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.


Thread source:: http://www.webmasterworld.com/php/4029472.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com