Page 1 of 1

Large File Upload

Posted: Tue Jul 25, 2006 8:12 pm
by face2six
Anyone care to take a stab at this.....

I have a client that uses a back-end that uploads files to thier site. In a previous incarnation(previous host,no safe mode) the client swears the site was able to upload files of 1.5mb in size. I can believe that because set_time_limit() function was used in the upload script which worked fine because safemode was off

Client switched hosting (new host , safe mode ON) and then site got droppend into my lap :roll:

So now client tries to upload files of 1.5 mb it times out (actually anything over 700k times out
)

New Host Admin will/can not change the default max_execution_time from the default of 30 secs.

So my question is this.

Based on the assumption that there has to be some site out there written in php that is capable of uploading 1.5 mb files to the server, with safemode on ( default) and max_execution_time 30 ( also default), and because you cant overide timeout with set_time_limit()

How can it be done?

Posted: Tue Jul 25, 2006 8:19 pm
by feyd
you can use .htaccess files to change the max_execution_time setting.

Posted: Wed Jul 26, 2006 12:06 am
by face2six
I have tried this in an .htaccess

<IfModule mod_php4.c>
php_value max_execution_time 800
</IfModule>

but doesnt seem to have affected anything.
but im no htaccess file guru, so I maybe hosed it

not getting any server errors tho

Posted: Wed Jul 26, 2006 12:07 am
by feyd
check the setting in phpinfo().