By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,872 Members | 2,392 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,872 IT Pros & Developers. It's quick & easy.

Upload Recommendations

P: n/a
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.
Dec 19 '07 #1
Share this Question
Share on Google+
7 Replies


P: n/a

"Rozzy" <ro*****@gmail.comwrote in message
news:72**********************************@1g2000hs l.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?
Dec 19 '07 #2

P: n/a
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

Dec 19 '07 #3

P: n/a
On Dec 19, 11:48 am, "Steve" <no....@example.comwrote:
"Rozzy" <rozm...@gmail.comwrote in message

news:72**********************************@1g2000hs l.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.
Dec 19 '07 #4

P: n/a
On Dec 19, 11:54 am, macca <ptmcna...@googlemail.comwrote:
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.
Dec 19 '07 #5

P: n/a

"Rozzy" <ro*****@gmail.comwrote in message
news:ad**********************************@r29g2000 hsg.googlegroups.com...
On Dec 19, 11:48 am, "Steve" <no....@example.comwrote:
>"Rozzy" <rozm...@gmail.comwrote in message

news:72**********************************@1g2000h sl.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. :)
Dec 19 '07 #6

P: n/a
Steve wrote:

<snip>
>
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
Dec 19 '07 #7

P: n/a

"Erwin Moller"
<Si******************************************@spam yourself.comwrote in
message news:47***********************@news.xs4all.nl...
Steve wrote:

<snip>
>>
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.
Dec 19 '07 #8

This discussion thread is closed

Replies have been disabled for this discussion.