阅读背景:

在PHP脚本中管理内存的最佳实践?

来源:互联网 

Memory management is not something that most PHP developers ever need to think about. I'm running into an issue where my command line script is running out of memory. It performs multiple iterations over a large array of objects, making multiple database requests per iteration. I'm sure that increasing the memory ceiling may be a short term fix, but I don't think it's an appropriate long-term solution. What should I be doing to make sure that my script is not using too much memory, and using memory efficiently?Memory management is not something that most PH




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: