Home > Backend Development > PHP Tutorial > ThinkPHP提示错误Fatal error: Allowed memory size的解决方法_PHP

ThinkPHP提示错误Fatal error: Allowed memory size的解决方法_PHP

WBOY
Release: 2016-05-31 13:16:22
Original
949 people have browsed it

本文实例讲述了ThinkPHP提示错误Fatal error: Allowed memory size的解决方法。分享给大家供大家参考。具体分析如下:

如果你的ThinkPHP提示你:致命错误(Fatal error: Allowed memory size),根据网上说的提高服务器可使用内存,我觉得都不是好的解决办法。麻烦也没必要。因为这是ThinkPHP本身存在BUG。

错误提示: 代码如下:




include './Public/home/js/Company/companyJS.html';

如果是因为empty,可以参照上面:

代码如下:


if(empty($a)){
    echo 'a为空'
}


至此问题解决!

希望本文所述对大家基于ThinkPHP框架的程序设计有所帮助。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template