Memory的调整

原文链接:http://calfen.wenhuaren.org/blog/post/1/10


Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 2842 bytes) in template/smarty/Smarty_Compiler.class.php on line 256



可以在index.php中增加

ini_set("upload_max_fi...

原文链接:http://calfen.wenhuaren.org/blog/post/1/10

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 2842 bytes) in template/smarty/Smarty_Compiler.class.php on line 256

可以在index.php中增加

ini_set(“upload_max_filesize”, “20M”);
ini_set(“memory_limit”, “32M”);
ini_set(“post_max_size”, “24M”);

来修改这些参数