Upload Time Limit Help! (max_input_time) Upload Time Limit Help! (max_input_time)
 

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]

Main Menu

Upload Time Limit Help! (max_input_time)

Started by theacrew, September 19, 2006, 09:32:19 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

theacrew

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:

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?


Nibbler

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

max_execution_time = 120

to increase to 2mins.

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

php_value max_execution_time 120

session.gc_maxlifetime is a completely unrelated setting.

theacrew

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!

Joachim Müller

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.