|
Posted by Good Man on 09/12/07 19:07
"Jim Carlock" <anonymous@127.0.0.1> wrote in news:46e834e6$0$11048
$4c368faf@roadrunner.com:
> "Rik Wasmus" wrote...
>: http://www.php.net/manual/en/ini.core.php#ini.memory-limit
>
>: So, normally this would be perfectly changable in the script itself,
>: in a .htaccess or httpd.conf (for Apache), etc.
>
> Thanks, Rik.
>
> It took me a little while to find the appropriate function to set
> the value. So to help others out, here's the function name and
> use to help others reading along.
>
> ini_set("memory_limit", "256M");
>
Interesting to see 'memory_limit' as a changeable setting via ini_set();
So, if a webhost set the PHP memory limit to 24M, and I know they have 2GB
on the machine, is it being suggested that I can override the limit set in
php.ini with a simple ini_set directive? This seems to put quite a lot of
'power' into the hands of PHP scripters?
Navigation:
[Reply to this message]
|