Welcome Guest, Not a member yet? Register   Sign In
About ini_set('memory_limit', '-1');
#1

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.
Reply
#2

(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

ini_set('memory_limit', '-1'); where file to write.

thank you.


Maybe in index.php, after <?php tag
Also you can put this code into ENVIRONMENT 
For example index.php :
PHP Code:
switch (ENVIRONMENT)
{
    case 
'development':
                
ini_set('memory_limit''-1');
        
error_reporting(-1);
        
ini_set('display_errors'1);
    break; 
Reply
#3

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.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB