Background Refresh

Background Refresh

am 21.01.2008 23:08:30 von sdastouri

Hi Guys,
I need some help.
I am using php_move_file to upload some files to the server. I want to
be able to support large files. But the Apache settings is that after
90 sec. the connections resets. This becomes a problem with large
files (slow links). Is there anyway to write a script that would
refresh in the background.

Also is there a way to upload a files in increments? So using
$_FILE['size] we get the size of the file. and then upload the first
1MB then refresh, then 2nd 1mb and so on.

Thanks

Sean

Re: Background Refresh

am 22.01.2008 00:01:11 von Courtney

sdastouri@gmail.com wrote:
> Hi Guys,
> I need some help.
> I am using php_move_file to upload some files to the server. I want to
> be able to support large files. But the Apache settings is that after
> 90 sec. the connections resets.

Are you sure?
Generally timeoutsarefor'no data being sent/recieved' not 'data in
progres' as it were.

I have sent accidentally a 60MB file that took 15 minutes to
complete..but complete it did..



This becomes a problem with large
> files (slow links). Is there anyway to write a script that would
> refresh in the background.
>
> Also is there a way to upload a files in increments? So using
> $_FILE['size] we get the size of the file. and then upload the first
> 1MB then refresh, then 2nd 1mb and so on.
>
> Thanks
>
> Sean

Re: Background Refresh

am 22.01.2008 10:20:55 von colin.mckinnon

On 21 Jan, 22:08, sdasto...@gmail.com wrote:
> Hi Guys,
> I need some help.
> I am using php_move_file to upload some files to the server. I want to
> be able to support large files. But the Apache settings is that after
> 90 sec. the connections resets. This becomes a problem with large
> files (slow links). Is there anyway to write a script that would
> refresh in the background.
>
> Also is there a way to upload a files in increments? So using
> $_FILE['size] we get the size of the file. and then upload the first
> 1MB then refresh, then 2nd 1mb and so on.
>

Short answer is no - that requires a lot more smarts at the client
side. If you running PHP at the client side then by all means. If
you're running a browser you'll need to write a java application.

C.