|
Posted by Steve on 12/19/07 17:09
"Rozzy" <rozmaha@gmail.com> wrote in message
news:ad318fca-1b61-4e43-9ccc-2692d8863ba0@r29g2000hsg.googlegroups.com...
> On Dec 19, 11:48 am, "Steve" <no....@example.com> wrote:
>> "Rozzy" <rozm...@gmail.com> wrote in message
>>
>> news:72f38690-8e96-4eae-9586-87c5865a7d9b@1g2000hsl.googlegroups.com...
>>
>>
>>
>> > Hi, I need some recommendations for uploading files to the server.
>> > Right now I have a php script that uses ftp to upload, download, and
>> > delete files, and everything works fine for small files.
>>
>> > However, the original purpose for this script was to be able to upload
>> > large files (100 - 200 MB). The problem is that the request times out.
>> > Now I'm a php noob so I don't know if the problem is my internet
>> > connection, my host's bandwidth, or both.
>>
>> > Could someone please give me an idea of how fast my own internet
>> > connection should be the bandwidth from my host or any possible
>> > solutions to the problem.
>>
>> > I have also considered various free file sharing services such as
>> > mediafire.com. If anybody thinks this is a better solution let me
>> > know, and maybe recommend some other sites, I need to be able to set
>> > permissions for files so customers can only download and delete files
>> > intended for them.
>>
>> what is your max_execution time set for? is the browser timing out, or is
>> php?
>
> max_execution is set for 30. I'm assuming thats in seconds, and yeah I
> don't know if its my browser or php thats timing out, firefox tells me
> that the connection was reset if that helps.
that is in seconds...try setting it to 0. then, make sure (as someone else
mentioned) that you set the maximum allowable upload file size...either to
your specific limit, or -1 (which i think removes the upload file size
check) while you're debugging. right now though, you probably just want to
see that uploading a large file is possible without timing out. that's fine,
just go back and make sure you have *appropriate* settings for your
production environment.
i don't think its your browser timing out at this point. getting a 200MB
file from one pc to another over the internet and doing any kind of
processing on it, all in 30 seconds, is just a bit too optimistic for me. :)
Navigation:
[Reply to this message]
|