473,465 Members | 4,818 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Upload Recommendations

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
7 1581

"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
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
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
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

"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
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

"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Virgil Green | last post by:
I'm building a new PHP-based site. One of the things I need to do is have the users upload an image (photo) and then allow them to view it and position it withing a cropping window of a predefined...
3
by: Y. Sivaram | last post by:
Hi, We are looking for a ASP component (ActiveX/Applet) that can zip a file from client side and upload it to the server. Currently we are evaluating ASP Upload(It does not have the zip feature)...
4
by: Uncle Ben | last post by:
Is there any good and reliable Upload Component for ASP (or ASP.NET)? I need one which provides an upload status bar. As well, it must be able to handle more than 4 gigabytes of data transfer....
2
by: Byron | last post by:
Hey, I've been using SA-Fileup for a while on one server and need to buy some similar ASP file upload software for another server. I've haven't been thrilled with some of FileUp's features and...
4
by: Dani | last post by:
Hi, I'm hoping that some of you will have experience with uploading images via ASP to an Access db on a remote server. I've scoured the threads for code samples, recommendations for particular...
0
by: SEMIH DEMIR | last post by:
Sitelerden birinde verilen yabancı kaynakli bir scriptti duzenledim yanlız birseyin içinden bir turlu cıkamadım işin aslı ilk defa persistin upload componentini kullanacam yanlız suanki haliyle...
7
by: crowl | last post by:
Hi there, I am looking for a component allowing me uploading multiple files by my asp page. I have found several components achieving this by require a <input type="file" name="FileX"> field for...
25
by: Wim Cossement | last post by:
Hello, I was wondering if there are a few good pages and/or examples on how to process form data correctly for putting it in a MySQL DB. Since I'm not used to using PHP a lot, I already found...
0
by: darrel | last post by:
Well, I spent way too many non-billable hours trying to get a progress bar for large file uploads implemented in a project. I ended up using the GREAT open source 'NeatUpload' which I have to say...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.