TECH [How to] set different memory_limit value only in a file

basketmen

New Member
Jan 31, 2007
112
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?
 

jdw

New Member
Dec 31, 2005
4,413
ND
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?
http://php.net/manual/en/function.ini-set.php

ini_set("memory_limit",?M);
 

Users who are viewing this thread

About Us

  • Please do not post anything that violates any Local, State, Federal or International Laws. Your privacy is protected. You have the right to be forgotten. Site funded by advertising, link monetization and member support.
OT v15.8.1 Copyright © 2000-2022 Offtopic.com
Served by fu.offtopic.com

Online statistics

Members online
436
Guests online
68
Total visitors
504

Forum statistics

Threads
369,753
Messages
16,917,856
Members
86,875
Latest member
ddunn9448