代码:
if (flock($fp, LOCK_EX))
{
fwrite($fp, serialize($this->_contents));
flock($fp, LOCK_UN);
}
错误:
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 17805286 bytes).....
错误行:
fwrite($fp, serialize($this->_contents));
知道如何解决这个问题吗?我的网站托管在共享主机上,所以我没有机会更改内存设置。
谢谢