Hi guys, in WHM >> PHP Configuration Editor (php.ini) >> the memory_limit are set to 30M, so the server no need too high resource, and to prevent poorly written scripts for eating up all available memory on a server I want a file only, lets say some.php, that already trusted of course, get higher memory_limit more than set in php.ini is there any way to do that?
$newSize='50M'; ini_set('memory_limit', $newSize); PHP: Obviously changing $newSize too what is required is up to you.
Yep, ini_set function sets the value of the given configuration option. The configuration option will keep this new value during the script's execution, and will be restored at the script's ending. http://php.net/manual/en/function.ini-set.php
Thanks for taking that over PHPMaster, well explained. Obviously the variable isn't necessary and you could just fill it into the functions parameter as you normally would but I felt like it would be easier than explaining it.