473,382 Members | 1,705 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Want to increase upload speed : php

Hello,
I am using php script to upload file.
some times if file size is too big(1GB) it takes too much time to
upload.
Can someone suggest me the way to increase upload speed.

thanks
Jul 2 '08 #1
10 11652
Devang wrote:
I am using php script to upload file.
some times if file size is too big(1GB) it takes too much time to
upload.
Can someone suggest me the way to increase upload speed.
Read Tannenbaum's book on computer networks. In particular, that bit about
the bandwidth of a train hopper full of tapes.

--
----------------------------------
Iván Sánchez Ortega -ivan-algarroba-sanchezortega-punto-es-

Proudly running Debian Linux with 2.6.24-1-amd64 kernel, KDE 3.5.9, and PHP
5.2.6-1 generating this signature.
Uptime: 13:05:44 up 23 days, 20:53, 2 users, load average: 2.34, 1.53,
1.16

Jul 2 '08 #2
Devang wrote:
Hello,
I am using php script to upload file.
some times if file size is too big(1GB) it takes too much time to
upload.
Can someone suggest me the way to increase upload speed.

thanks
Get a faster link.

PHP isn't what's slowing you down; it only gets involved once the file
has been uploaded.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Jul 2 '08 #3
On Jul 2, 12:27 pm, Jerry Stuckle <jstuck...@attglobal.netwrote:
Devang wrote:
Hello,
I am using php script to upload file.
some times if file size is too big(1GB) it takes too much time to
upload.
Can someone suggest me the way to increase upload speed.
thanks

Get a faster link.

PHP isn't what's slowing you down; it only gets involved once the file
has been uploaded.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attglobal.net
==================
I'm surprised it works at all. Despite my preious arguments regarding
HTTP over FTP, in this case I'd look for some way other than HTTP
uplaod to transfer such files (but NOT FTP!!!!!)

C.
Jul 2 '08 #4
C. (http://symcbean.blogspot.com/) wrote:
On Jul 2, 12:27 pm, Jerry Stuckle <jstuck...@attglobal.netwrote:
>Devang wrote:
>>Hello,
I am using php script to upload file.
some times if file size is too big(1GB) it takes too much time to
upload.
Can someone suggest me the way to increase upload speed.
thanks
Get a faster link.

PHP isn't what's slowing you down; it only gets involved once the file
has been uploaded.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attglobal.net
==================

I'm surprised it works at all. Despite my preious arguments regarding
HTTP over FTP, in this case I'd look for some way other than HTTP
uplaod to transfer such files (but NOT FTP!!!!!)

C.
ftp would be the fastest way to do it. But that wasn't his question.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Jul 2 '08 #5
On Jul 2, 12:50 pm, Jerry Stuckle <jstuck...@attglobal.netwrote:
C. (http://symcbean.blogspot.com/) wrote:
On Jul 2, 12:27 pm, Jerry Stuckle <jstuck...@attglobal.netwrote:
Devang wrote:
Hello,
I am using php script to upload file.
some times if file size is too big(1GB) it takes too much time to
upload.
Can someone suggest me the way to increase upload speed.
thanks
Get a faster link.
PHP isn't what's slowing you down; it only gets involved once the file
has been uploaded.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attglobal.net
==================
I'm surprised it works at all. Despite my preious arguments regarding
HTTP over FTP, in this case I'd look for some way other than HTTP
uplaod to transfer such files (but NOT FTP!!!!!)
C.

ftp would be the fastest way to do it. But that wasn't his question.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attglobal.net
==================
Given the OP's statement regarding the size of files involved (over a
gig) I think the choice of protocol is not going to be an enormous
help.

To the OP, there is nothing you can do in PHP to improve your
situation, the PHP script won't even start to execute until the file
upload is complete or fails. The only way to get faster uploads is to
fork out for a faster net connection, and for a faster net connection
for the server if that's not fast enough to keep up.
Jul 2 '08 #6
Gordon wrote:
On Jul 2, 12:50 pm, Jerry Stuckle <jstuck...@attglobal.netwrote:
>C. (http://symcbean.blogspot.com/) wrote:
>>On Jul 2, 12:27 pm, Jerry Stuckle <jstuck...@attglobal.netwrote:
Devang wrote:
Hello,
I am using php script to upload file.
some times if file size is too big(1GB) it takes too much time to
upload.
Can someone suggest me the way to increase upload speed.
thanks
Get a faster link.
PHP isn't what's slowing you down; it only gets involved once the file
has been uploaded.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attglobal.net
==================
I'm surprised it works at all. Despite my preious arguments regarding
HTTP over FTP, in this case I'd look for some way other than HTTP
uplaod to transfer such files (but NOT FTP!!!!!)
C.
ftp would be the fastest way to do it. But that wasn't his question.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attglobal.net
==================

Given the OP's statement regarding the size of files involved (over a
gig) I think the choice of protocol is not going to be an enormous
help.

To the OP, there is nothing you can do in PHP to improve your
situation, the PHP script won't even start to execute until the file
upload is complete or fails. The only way to get faster uploads is to
fork out for a faster net connection, and for a faster net connection
for the server if that's not fast enough to keep up.
Yes. There is no especial reason that FTP would be faster than HTTP
either: Any speed issues would be down to the FTP server versus the HTTP
server, which are both sucking bytes and pumping them into some form of
temporary storage via a TCP connection. However the web server may be
interpreting the data stream as it comes in. And PHP may do the same.

If the user is on ADSL, or another asymmetrical protocol, it will be far
slower to upload as well.
Jul 2 '08 #7
The Natural Philosopher wrote:
Gordon wrote:
>On Jul 2, 12:50 pm, Jerry Stuckle <jstuck...@attglobal.netwrote:
>>C. (http://symcbean.blogspot.com/) wrote:
On Jul 2, 12:27 pm, Jerry Stuckle <jstuck...@attglobal.netwrote:
Devang wrote:
>Hello,
>I am using php script to upload file.
>some times if file size is too big(1GB) it takes too much time to
>upload.
>Can someone suggest me the way to increase upload speed.
>thanks
Get a faster link.
PHP isn't what's slowing you down; it only gets involved once the file
has been uploaded.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attglobal.net
==================
I'm surprised it works at all. Despite my preious arguments regarding
HTTP over FTP, in this case I'd look for some way other than HTTP
uplaod to transfer such files (but NOT FTP!!!!!)
C.
ftp would be the fastest way to do it. But that wasn't his question.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attglobal.net
==================

Given the OP's statement regarding the size of files involved (over a
gig) I think the choice of protocol is not going to be an enormous
help.

To the OP, there is nothing you can do in PHP to improve your
situation, the PHP script won't even start to execute until the file
upload is complete or fails. The only way to get faster uploads is to
fork out for a faster net connection, and for a faster net connection
for the server if that's not fast enough to keep up.

Yes. There is no especial reason that FTP would be faster than HTTP
either: Any speed issues would be down to the FTP server versus the HTTP
server, which are both sucking bytes and pumping them into some form of
temporary storage via a TCP connection. However the web server may be
interpreting the data stream as it comes in. And PHP may do the same.

If the user is on ADSL, or another asymmetrical protocol, it will be far
slower to upload as well.
Actually, there is. HTTP adds some extra bytes to each transmission
that ftp doesn't. So ftp would be more efficient and faster. Not much,
I grant you. But on a 1GB file it's possible it would be noticeable.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Jul 2 '08 #8
On Jul 2, 11:27 pm, Jerry Stuckle <jstuck...@attglobal.netwrote:
The Natural Philosopher wrote:
Gordon wrote:
On Jul 2, 12:50 pm, Jerry Stuckle <jstuck...@attglobal.netwrote:
C. (http://symcbean.blogspot.com/) wrote:
On Jul 2, 12:27 pm, Jerry Stuckle <jstuck...@attglobal.netwrote:
Devang wrote:
Hello,
I am using php script to upload file.
some times if file size is too big(1GB) it takes too much time to
upload.
Can someone suggest me the way to increase upload speed.
thanks
Get a faster link.
PHP isn't what's slowing you down; it only gets involved once the file
has been uploaded.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attglobal.net
==================
I'm surprised it works at all. Despite my preious arguments regarding
HTTP over FTP, in this case I'd look for some way other than HTTP
uplaod to transfer such files (but NOT FTP!!!!!)
C.
ftp would be the fastest way to do it. But that wasn't his question.
>--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attglobal.net
==================
Given the OP's statement regarding the size of files involved (over a
gig) I think the choice of protocol is not going to be an enormous
help.
To the OP, there is nothing you can do in PHP to improve your
situation, the PHP script won't even start to execute until the file
upload is complete or fails. The only way to get faster uploads is to
fork out for a faster net connection, and for a faster net connection
for the server if that's not fast enough to keep up.
Yes. There is no especial reason that FTP would be faster than HTTP
either: Any speed issues would be down to the FTP server versus the HTTP
server, which are both sucking bytes and pumping them into some form of
temporary storage via a TCP connection. However the web server may be
interpreting the data stream as it comes in. And PHP may do the same.
If the user is on ADSL, or another asymmetrical protocol, it will be far
slower to upload as well.

Actually, there is. HTTP adds some extra bytes to each transmission
that ftp doesn't. So ftp would be more efficient and faster. Not much,
I grant you. But on a 1GB file it's possible it would be noticeable.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attglobal.net
==================
Thank you all for your views

One thing i want to tell is that,
I have made following changes to php.ini file for application specific
purpose.

Upload_max_filesize=2047MB
post_max_size= 2047MB

I am uploading file to apache web server.
So what I should do now to speed up my uploading process (when file
size is 1GB or more)

Jul 3 '08 #9
Devang wrote:
On Jul 2, 11:27 pm, Jerry Stuckle <jstuck...@attglobal.netwrote:
>The Natural Philosopher wrote:
>>Gordon wrote:
On Jul 2, 12:50 pm, Jerry Stuckle <jstuck...@attglobal.netwrote:
C. (http://symcbean.blogspot.com/) wrote:
>On Jul 2, 12:27 pm, Jerry Stuckle <jstuck...@attglobal.netwrote:
>>Devang wrote:
>>>Hello,
>>>I am using php script to upload file.
>>>some times if file size is too big(1GB) it takes too much time to
>>>upload.
>>>Can someone suggest me the way to increase upload speed.
>>>thanks
>>Get a faster link.
>>PHP isn't what's slowing you down; it only gets involved once the file
>>has been uploaded.
>>--
>>==================
>>Remove the "x" from my email address
>>Jerry Stuckle
>>JDS Computer Training Corp.
>>jstuck...@attglobal.net
>>==================
>I'm surprised it works at all. Despite my preious arguments regarding
>HTTP over FTP, in this case I'd look for some way other than HTTP
>uplaod to transfer such files (but NOT FTP!!!!!)
>C.
ftp would be the fastest way to do it. But that wasn't his question.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attglobal.net
==================
Given the OP's statement regarding the size of files involved (over a
gig) I think the choice of protocol is not going to be an enormous
help.
To the OP, there is nothing you can do in PHP to improve your
situation, the PHP script won't even start to execute until the file
upload is complete or fails. The only way to get faster uploads is to
fork out for a faster net connection, and for a faster net connection
for the server if that's not fast enough to keep up.
Yes. There is no especial reason that FTP would be faster than HTTP
either: Any speed issues would be down to the FTP server versus the HTTP
server, which are both sucking bytes and pumping them into some form of
temporary storage via a TCP connection. However the web server may be
interpreting the data stream as it comes in. And PHP may do the same.
If the user is on ADSL, or another asymmetrical protocol, it will be far
slower to upload as well.
Actually, there is. HTTP adds some extra bytes to each transmission
that ftp doesn't. So ftp would be more efficient and faster. Not much,
I grant you. But on a 1GB file it's possible it would be noticeable.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attglobal.net
==================

Thank you all for your views

One thing i want to tell is that,
I have made following changes to php.ini file for application specific
purpose.

Upload_max_filesize=2047MB
post_max_size= 2047MB

I am uploading file to apache web server.
So what I should do now to speed up my uploading process (when file
size is 1GB or more)

Read the answers already provided. Then understand this has NOTHING to
do with PHP.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Jul 3 '08 #10
On Jul 3, 9:59 am, Devang <devang...@gmail.comwrote:
On Jul 2, 11:27 pm, Jerry Stuckle <jstuck...@attglobal.netwrote:
The Natural Philosopher wrote:
Gordon wrote:
>On Jul 2, 12:50 pm, Jerry Stuckle <jstuck...@attglobal.netwrote:
>>C. (http://symcbean.blogspot.com/) wrote:
>>>On Jul 2, 12:27 pm, Jerry Stuckle <jstuck...@attglobal.netwrote:
>>>>Devang wrote:
>>>>>Hello,
>>>>>I am using php script to upload file.
>>>>>some times if file size is too big(1GB) it takes too much time to
>>>>>upload.
>>>>>Can someone suggest me the way to increase upload speed.
>>>>>thanks
>>>>Get a faster link.
>>>>PHP isn't what's slowing you down; it only gets involved once the file
>>>>has been uploaded.
>>>>--
>>>>==================
>>>>Remove the "x" from my email address
>>>>Jerry Stuckle
>>>>JDS Computer Training Corp.
>>>>jstuck...@attglobal.net
>>>>==================
>>>I'm surprised it works at all. Despite my preious arguments regarding
>>>HTTP over FTP, in this case I'd look for some way other than HTTP
>>>uplaod to transfer such files (but NOT FTP!!!!!)
>>>C.
>>ftp would be the fastest way to do it. But that wasn't his question.
>>--
>>==================
>>Remove the "x" from my email address
>>Jerry Stuckle
>>JDS Computer Training Corp.
>>jstuck...@attglobal.net
>>==================
>Given the OP's statement regarding the size of files involved (over a
>gig) I think the choice of protocol is not going to be an enormous
>help.
>To the OP, there is nothing you can do in PHP to improve your
>situation, the PHP script won't even start to execute until the file
>upload is complete or fails. The only way to get faster uploads is to
>fork out for a faster net connection, and for a faster net connection
>for the server if that's not fast enough to keep up.
Yes. There is no especial reason that FTP would be faster than HTTP
either: Any speed issues would be down to the FTP server versus the HTTP
server, which are both sucking bytes and pumping them into some form of
temporary storage via a TCP connection. However the web server may be
interpreting the data stream as it comes in. And PHP may do the same.
If the user is on ADSL, or another asymmetrical protocol, it will be far
slower to upload as well.
Actually, there is. HTTP adds some extra bytes to each transmission
that ftp doesn't. So ftp would be more efficient and faster. Not much,
I grant you. But on a 1GB file it's possible it would be noticeable.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attglobal.net
==================

Thank you all for your views

One thing i want to tell is that,
I have made following changes to php.ini file for application specific
purpose.

Upload_max_filesize=2047MB
post_max_size= 2047MB

I am uploading file to apache web server.
So what I should do now to speed up my uploading process (when file
size is 1GB or more)
Increase your TCP window scaling and keep your fingers crossed you
don't have a broken router between client and server.

C.
Jul 3 '08 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

32
by: Ray at | last post by:
I despise installing third party software on my workstations or servers. It is for this reason that I use componentless-upload for file uploads. This is no longer an option, and I have to...
6
by: Bruno Piovan | last post by:
Hello, does anyone know how can I measure the upload speed with asp.net?? I would like to have button on a form and when the user clicks this button, it will show what is the upload speed. ...
3
by: Mike Kelly | last post by:
Hi. I've built a page using standard ASP.NET 2.0 features and when I upload a large file (>20MB) to our intranet server, I get a paltry 100KB/s on our 100Mb/s LAN. Simply copying the file, I get...
2
by: Mike Kober | last post by:
I am having issues with the File Upload control for sending files to the server via HTTP. The speed of the upload is often between 20kbs and 40kbs. If I use the LAN at work to the server, it...
3
by: Jakob Petersen | last post by:
Hi, I need to increase the speed when retrieving data from a hosted SQL Server into VBA. I'm using simple SELECT statements. How important is the speed of my Internet connection? (I have...
1
by: Kelie | last post by:
hello, would there be any speed increase in code execution after python code being compiled into exe file with py2exe? thanks, kelie
1
by: AliRezaGoogle | last post by:
Dear members I am working with a 2000 GH P4 Intel, and 512GB RAM. I have a long list matrix 3000 * 15,000 of type double. I have a calculation procedure which can be executed on any single...
14
by: BigZero | last post by:
Hello, can nay body tell me how upload works? "well the code that i m using works fine with me i mean that the file uploadin is working but i m unable to find how it internal it works"? when...
2
dlite922
by: dlite922 | last post by:
I have an intranet LAMP server and I use PHP to upload files. It is of course faster to download the same file than to upload it. I understand ISPs throttle their network for download speed, than...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.