zoukankan      html  css  js  c++  java
  • ThinkPHP使用问题

    在生成编译的缓存的时候,有可能写入~runtime.php文件出错,可能问题是在Common/runtime.ph文件中build_runtime_cache方法出错,出错的语句是

    file_put_contents(RUNTIME_FILE,strip_whitespace('<?php '.$content));
    

    file_put_contents方法,需要服务器设置好正确的时区,在php.inp文件中,添加date.timezone = PRC,已有的,修改为正确的,即可。

    还有可能遇到内存不足问题,在PHP.ini中调整设置,将内容限制改大一些,默认是8MB

    memory_limit = 16M      ; Maximum amount of memory a script may consume (8MB)

  • 相关阅读:
    心得
    第七章
    第六章
    第五章
    第四章
    第三章
    第二章
    第一章
    实验2(4)
    实验2(3)
  • 原文地址:https://www.cnblogs.com/lynnlin/p/2977687.html
Copyright © 2011-2022 走看看