Upload Recommendations
am 19.12.2007 17:31:23 von Rozzy
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.
Thanks, your help is much appreciated.
Re: Upload Recommendations
am 19.12.2007 17:48:00 von Steve
"Rozzy" wrote in message
news:72f38690-8e96-4eae-9586-87c5865a7d9b@1g2000hsl.googlegr oups.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?
Re: Upload Recommendations
am 19.12.2007 17:54:59 von Macca
There are some directives in the php.ini file that you may need to
alter, such as:
upload_max_filesize - Maximum allowed size for uploaded files.
max_execution_time - Maximum execution time of each script, in seconds
max_input_time - Maximum amount of time each script may spend parsing
request data
Re: Upload Recommendations
am 19.12.2007 17:58:25 von Rozzy
On Dec 19, 11:48 am, "Steve" wrote:
> "Rozzy" wrote in message
>
> news:72f38690-8e96-4eae-9586-87c5865a7d9b@1g2000hsl.googlegr oups.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.
Re: Upload Recommendations
am 19.12.2007 18:07:49 von Rozzy
On Dec 19, 11:54 am, macca wrote:
> There are some directives in the php.ini file that you may need to
> alter, such as:
>
> upload_max_filesize - Maximum allowed size for uploaded files.
>
> max_execution_time - Maximum execution time of each script, in seconds
>
> max_input_time - Maximum amount of time each script may spend parsing
> request data
Thanks,
as I mentioned above the max_execution time is 30, upload_max_filesize
says 5M, although I asked by host to change it to a couple hundred
megs and he said no problem (don't know if it just takes a while to
show up?), and as for the max_input_time its 60.
So I suppose I should talk to my host about those things, thanks for
the help, and please keep the suggestions coming, I have a feeling
issues will continue with this after I resolve things with my host.
Re: Upload Recommendations
am 19.12.2007 18:09:10 von Steve
"Rozzy" wrote in message
news:ad318fca-1b61-4e43-9ccc-2692d8863ba0@r29g2000hsg.google groups.com...
> On Dec 19, 11:48 am, "Steve" wrote:
>> "Rozzy" wrote in message
>>
>> news:72f38690-8e96-4eae-9586-87c5865a7d9b@1g2000hsl.googlegr oups.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. :)
Re: Upload Recommendations
am 19.12.2007 19:12:49 von Erwin Moller
Steve wrote:
>
> 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. :)
>
Yes, that must be the problem.
If you have a 1 megabyte upload, you'll need 200 secs for a 200MB file,
assuming the receiving server and your connection have nothing alse to do.
Personally I would advise ftp with resume up/download for such files,
not a php-script.
Regards,
Erwin Moller
Re: Upload Recommendations
am 19.12.2007 19:29:06 von Steve
"Erwin Moller"
wrote in
message news:47696142$0$85794$e4fe514c@news.xs4all.nl...
> Steve wrote:
>
>
>
>>
>> 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.
>> :)
>
> Yes, that must be the problem.
> If you have a 1 megabyte upload, you'll need 200 secs for a 200MB file,
> assuming the receiving server and your connection have nothing alse to do.
>
> Personally I would advise ftp with resume up/download for such files, not
> a php-script.
me to usually, but it's a pain in the ass and is only an option on our
server for me and a couple of others...and a bunch of paperwork to be
approved to justify why you're effecting the system outside of a standardize
interface. sarbanes-oxley (aka sox, sarbox) smokes pole sometimes.
anyway, that may be some of the reasoning behind allowing the activity via
the web.