Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Upload Time Limit Help! (max_input_time)  (Read 2658 times)

0 Members and 1 Guest are viewing this topic.

theacrew

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Upload Time Limit Help! (max_input_time)
« on: September 19, 2006, 09:32:19 pm »

I seem to having trouble uploading larger files.

I've checked the FAQ and it seems like the default max. upload time is 60 and to change this value you need to contact your host.  Well, I contacted my host and they told me to create a php.ini file and place it in my public_html directory. The php.ini file contains this code:

Code: [Select]
php_value session.gc_maxlifetime 2400
I create the php.ini file and placed it in the appropriate directory but the upload time still has not been extended!
I am a novice at php so I am wondering if I am missing something here.  Does anyone know the solution to this problem?

Logged

Nibbler

  • Guest
Re: Upload Time Limit Help! (max_input_time)
« Reply #1 on: September 19, 2006, 10:12:12 pm »

That's all wrong. If you can have your own custom php.ini then the code to use is

Code: [Select]
max_execution_time = 120
to increase to 2mins.

If you need to use an .htaccess file instead, then the code would be

Code: [Select]
php_value max_execution_time 120
session.gc_maxlifetime is a completely unrelated setting.
Logged

theacrew

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Upload Time Limit Help! (max_input_time)
« Reply #2 on: September 28, 2006, 09:34:42 pm »

Thanks for the tip. This is a good start! However, I tried using your code but I am still having problems uploading.

The php.ini file is located here: http://the-a-crew.com/php.ini
Should this be in a different directory? Is there anything else I need to add to the file?
Thanks!
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Upload Time Limit Help! (max_input_time)
« Reply #3 on: October 02, 2006, 03:11:32 pm »

You need to ask your webhost where to put that file (and if they allow you to have one in the first place). Usually, it doesn't reside in the webroot, but one level above it. Use phpinfo to check if your custom php.ini file is being taken into account.
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 20 queries.