Topic: include/cache.php - why not file_put_contents() instead fwrite ?
My hosting (hostsnake.com) disabled function fopen and when i tried run punbb it shows me an error:
Unable to write configuration cache file to cache directory. Please make sure PHP has write access to the directory 'cache'
but this directory exists and has chmod 777. After removing @ from fopen it says:
Warning: fopen() has been disabled for security reasons in /www/hostsnake.com/d/a/r/daris/htdocs/include/cache.php on line 91
I replaced fwrite with file_put_contents and now it works.
Why cache.php not use file_put_contents instead of fwrite?