coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Upload => Topic started by: FIREBOX on December 17, 2005, 10:05:28 PM

Title: PHP.INI
Post by: FIREBOX on December 17, 2005, 10:05:28 PM
Hi

Error uploading large files to my site error as follows :

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 8000 bytes) in /home/sites/include/picmgmt.inc.php on line 196

The Global server memory limit is lower than coppermine needs to process

My host said I can create your own php.ini file inside whatever sub-directory your script is in. You then can determine the exact behaviour for your PHP scripts yourself.


does anyone have a sample php.ini file they can said me

thanks
Title: Re: PHP.INI
Post by: Nibbler on December 17, 2005, 10:07:34 PM
It's just a simple text file. If you want to increase the memory limit just use this


memory_limit = 16M
Title: Re: PHP.INI
Post by: FIREBOX on December 17, 2005, 10:12:08 PM
stupid question, do I ?

step 1 go into dreamweaver new document

step 2 type memory_limit=16mb

step 3 how to save that document type ?

sorry for stupidity
Title: Re: PHP.INI
Post by: Nibbler on December 17, 2005, 10:13:08 PM
Use a simple text editor like notepad to create the file. Enter that line and save it as php.ini. Then FTP it to your site as instructed by your host.
Title: Re: PHP.INI
Post by: FIREBOX on December 17, 2005, 10:25:33 PM
thanks for your patients

that worked a treat

i bow down in ore !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!