PDA

View Full Version : Large File Uploads


face2six
07-19-2006, 08:47 PM
I have a back end that uploads files to server using the copy() function

Unfortunately the client that uses this back end wants to upload files of up to 1.5MB in size.

THe server defaults have set max_execution_time 30 and safe mode is ON
so, AFAIK, I can not over ride with set_time_Limit()

The script uploads files to server fine as long as the file-size is no bigger than @ .75-1MB, Anything larger times out.

I have considered replacing the script with an FTP_PUT() but I am unsure this will make any difference.

Also...no the server admin will not up the max_execution_time:mad:

Any suggestions - .....that is other than telling my client to buy an FTP program and upload files directly :)

marek_mar
07-19-2006, 11:20 PM
The things you could check:
The max_input_time (http:/www.php.net/manual/en/ref.info.php#ini.max-input-time) ini setting. I'm not sure if thiswill apply in your case, though.
The part of the manual about connection handling (http://www.php.net/manual/en/features.connection-handling.php).