forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: first-ade on January 22, 2008, 04:49:08 pm

Title: Global Include
Post by: first-ade on January 22, 2008, 04:49:08 pm
Hi all

I'm looking for a global include file so that I can add ini_set ( "memory_limit", "32M"); to all the pages without actually having to manually edit every file.  Is there such a file?

Cheers

Ade
Title: Re: Global Include
Post by: Nibbler on January 22, 2008, 05:21:10 pm
You should make the change properly using php.ini or .htaccess (whichever applies). If you have no other option then use include/init.inc.php.
Title: Re: Global Include
Post by: first-ade on January 22, 2008, 05:24:49 pm
Thanks, unfortunately my host is a bit overzealous at locking down the web server.
Title: Re: Global Include
Post by: Nibbler on January 22, 2008, 05:50:16 pm
They can easily disable ini_set(). Find a more accommodating webhost.