Forum Moderators: coopster

Message Too Old, No Replies

[How to] set different memory limit value only in a file

         

basketmen

11:52 pm on Feb 21, 2011 (gmt 0)

10+ Year Member



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?

coopster

5:07 pm on Feb 22, 2011 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



That particular configuration directive may be set anywhere. See the following resources for more information on what can be set where and how to do so:

ini_set [php.net]
Changeable mode values [php.net]
List of php.ini directives [php.net]