Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 2611816 bytes) 今天要
2017-04-28 09:53
603 查看
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 2611816 bytes)
今天要用PHP处理一个3万多条数据的表,转换后存入到新的数据表,发现PHP报:Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 2611816 bytes)
但是把MYSQL语句放在数据库中就可以执行
百度了下,原因是PHP的内存不够大
网上大部分都是让改php.ini配置文件:
但是发现改完了,也没用,报同样的错误,于是就想用PHP自带的unset()函数去处理,在做foreach()的时候,用完就unset变量,然后就不报错了,数据也能正常写入新的表
今天要用PHP处理一个3万多条数据的表,转换后存入到新的数据表,发现PHP报:Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 2611816 bytes)
但是把MYSQL语句放在数据库中就可以执行
百度了下,原因是PHP的内存不够大
网上大部分都是让改php.ini配置文件:
但是发现改完了,也没用,报同样的错误,于是就想用PHP自带的unset()函数去处理,在做foreach()的时候,用完就unset变量,然后就不报错了,数据也能正常写入新的表
相关文章推荐
- Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 2611816 bytes)
- Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 30720 bytes)
- Fatal error: Allowed memory size of 12582912 bytes exhausted (tried to allocate 62 bytes) in
- php项目编写过程中Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 3214636 byt
- Fatal error: Allowed php错误提示memory size of 8388608 bytes exhausted (tried to allocate 58368 bytes) i
- Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 2611816 bytes)错误的解决
- Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 393216 byt
- Fatal error: Allowed memory size of xxx bytes exhausted.(tried to allocate xxx bytes)
- 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 memory size of 134217728 bytes exhausted (tried to allocate 38218371 bytes)
- PHP的内存限制 Allowed memory size of 134217728 bytes exhausted (tried to allocate 1099 bytes) in
- Fatal error: 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 Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 49 bytes)
- (转载)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 32 bytes)