thinkphp3.1.2中遇到的问题,求高手解决!谢谢!Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 35 bytes) in E:\www\Thinkphp3-1-2\ThinkPHP\Common\common.php on line 507

解决方案 »

  1.   

    http://www.ws010.com/bencandy.php?fid=85&id=722;
      

  2.   

    内存耗尽了,改一下配置,或者,在index.php入口文件中添加ini_set("memory_size","12M");
    希望对你有用
      

  3.   


    不好意思写错了ini_set("memory_limit","12M");
      

  4.   


    加了那一句就出现这样的错误了,Fatal error: print_r() [<a href='ref.outcontrol'>ref.outcontrol</a>]: Cannot use output buffering in output buffering display handlers in E:\www\Thinkphp3-1-2\ThinkPHP\Common\common.php on line 594
    如果我刷新一下又出现这样的错误了,Fatal error: print_r() [<a href='ref.outcontrol'>ref.outcontrol</a>]: Cannot use output buffering in output buffering display handlers in E:\www\Thinkphp3-1-2\HelloWorld\Runtime\~runtime.php on line 1
    把缓存删了又出现上面那个错误。
      

  5.   

    'OUTPUT_ENCODE' =>  false
    config文件中加入这行代码,为关闭压缩输出