PHP大批量数据操作时临时调整内存与执行时间的方法 ,因为运行的程序会很大很慢所以需要临时设置下。不用修改php.ini参数了。
代码如下:
ini_set('memory_limit', '250M'); //内存限制
set_time_limit(0); //
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