Where to edit for increase in memory in PHP ini file?

前端 未结 2 667
梦毁少年i
梦毁少年i 2020-12-11 21:59

Hi I do have a PHP script which reads text file. when text file size is above the certain limit script gives error and stops. when I divide files into two it works. so where

2条回答
  •  孤街浪徒
    2020-12-11 22:15

    The setting is memory_limit and you can change it in the php.ini file for all scripts, or (better) just change it in the code for the one script that is causing you problems:

    ini_set('memory_limit', '64M');
    

提交回复
热议问题