php内存不够用,出现Allowed memory size of 8388608 bytes exhausted (tried to allocate 1298358 bytes)
来源:互联网 发布:linux clone 编辑:程序博客网 时间:2024/05/16 18:27
出现该错误的原因:是因为php页面消耗的最大内存默认是为 8M (在PHP的ini件里可以看到) ,如果文件太大读取的时候 会发生上述错误。
解决办法:
1,修改 php.ini将memory_limit由 8M 改成 16M(或更大),重启apache服务
2,在PHP 文件中 加入 ini_set(”memory_limit”,”100M”);注意:为了系统的其它资源的正常使用 请您不要将 memory_limit设置太大,其中-1为不限
3,修改.htaccess 文档(前提是该目录支持.htaccess)在文档中新增一句:php_value memory_limit 16M(或更大)
- php内存不够用,出现Allowed memory size of 8388608 bytes exhausted (tried to allocate 1298358 bytes)
- php内存不够用,出现Allowed memory size of 8388608 bytes exhausted (tried to allocate 1298358 bytes)
- Allowed memory size of 33554432 bytes exhausted (tried to allocate 43148176 bytes) in php
- PHP的内存限制 Allowed memory size of 134217728 bytes exhausted (tried to allocate 1099 bytes) in
- PHP的内存限制 Allowed memory size of 134217728 bytes exhausted (tried to allocate 1099 bytes) in
- PHP的内存限制 Allowed memory size of 134217728 bytes exhausted (tried to allocate 1099 bytes) in
- PHP的内存限制 Allowed memory size of 134217728 bytes exhausted (tried to allocate 1099 bytes) in
- PHP的内存限制 Allowed memory size of 134217728 bytes exhausted (tried to allocate 1099 bytes) in
- Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 775920 bytes) 问题解决
- Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 775920 bytes)
- Fatal error: Allowed php错误提示memory size of 8388608 bytes exhausted (tried to allocate 58368 bytes) i
- magento PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate xxxxx)
- Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 393216 byt
- Allowed memory size of 33554432 bytes exhausted (tried to allocate 16 bytes)
- Fatal error: Allowed memory size of 12582912 bytes exhausted (tried to allocate 62 bytes) in
- Allowed memory size of aaaaa bytes exhausted (tried to allocate bbbbb bytes)
- 问题解决Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 38218371 bytes)
- Allowed memory size of 149946368 bytes exhausted (tried to allocate 32640 bytes)
- 读取文件,提取数字,求总和
- NIO异常新动向
- TNS-12203 error
- 防火墙中配置FTP
- document.body.scrollTop用法
- php内存不够用,出现Allowed memory size of 8388608 bytes exhausted (tried to allocate 1298358 bytes)
- Oracle 删除归档日志脚本
- oracle表解锁方法
- 银行帐户管理信息系统
- asp %0D%0A换行问题
- E: 无法获得锁 /var/cache/apt/archives/lock - open (11: 资源暂时不可用)
- s:checkboxlist 用法
- 如何启用长按事件
- C3P0的详细配置说明(com.mchange.v2.c3p0.ComboPooledDataSource)