Home  >  Article  >  Backend Development  >  thinkphp3.1.3 内存有关问题

thinkphp3.1.3 内存有关问题

WBOY
WBOYOriginal
2016-06-13 12:42:23951browse

thinkphp3.1.3 内存问题

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 35 bytes) in E:\wamp\huike\ThinkPHP\Common\common.php on line 650

?

ini_set("memory_limit","12M");

?

//echo ini_get('display_errors');

?

?

define('APP_NAME','Index');//项目名称,非整个网站项目,此处是前台项目名称

define('APP_PATH','./Index/');//前端项目路径

define('RUNTIME_PATH','./Index/indexruntime/');//

require_once './ThinkPHP/ThinkPHP.php';

//echo C('username');

//define('APP_DEBUG',TRUE);

?

?

?>

添加?

ini_set("memory_limit","12M");

Statement:
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