![]() |
About ini_set('memory_limit', '-1'); - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: About ini_set('memory_limit', '-1'); (/showthread.php?tid=62628) |
About ini_set('memory_limit', '-1'); - seasenx6 - 08-07-2015 I try to using ini_set('memory_limit', '-1'); and I don't know to where coding ini_set('memory_limit', '-1'); where file to write. thank you. RE: About ini_set('memory_limit', '-1'); - Sky - 08-07-2015 (08-07-2015, 12:37 AM)seasenx6 Wrote: I try to using ini_set('memory_limit', '-1'); and I don't know to where coding Maybe in index.php, after <?php tag Also you can put this code into ENVIRONMENT For example index.php : PHP Code: switch (ENVIRONMENT) RE: About ini_set('memory_limit', '-1'); - Diederik - 08-07-2015 Please remember that in a shared hosting environment setting the memory_limit might not work as hosting providers could overrule your settings. But if you develop localy or host your project on you own server or a vps it is be possible to set the memory limit by numbers of ways: inside your php.ini configuration file, a htaccess file or inside your own .php script file. |