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?
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.
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 (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!
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.