Want to increase upload speed : php 
July 2nd, 2008, 10:45 AM
| | | 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 | 
July 2nd, 2008, 11:15 AM
| | | Re: Want to increase upload speed : php
Devang wrote: Quote:
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 | 
July 2nd, 2008, 11:35 AM
| | | Re: Want to increase upload speed : php
Devang wrote: Quote:
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. jstucklex@attglobal.net
================== | 
July 2nd, 2008, 11:55 AM
| | | Re: Want to increase upload speed : php
On Jul 2, 12:27 pm, Jerry Stuckle <jstuck...@attglobal.netwrote: Quote:
Devang wrote:> Quote:
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.
| >>
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. | 
July 2nd, 2008, 11:55 AM
| | | Re: Want to increase upload speed : php
C. ( http://symcbean.blogspot.com/) wrote: Quote:
On Jul 2, 12:27 pm, Jerry Stuckle <jstuck...@attglobal.netwrote: Quote:
>Devang wrote: Quote:
>>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. jstucklex@attglobal.net
================== | 
July 2nd, 2008, 01:05 PM
| | | Re: Want to increase upload speed : php
On Jul 2, 12:50 pm, Jerry Stuckle <jstuck...@attglobal.netwrote: Quote:
C. (http://symcbean.blogspot.com/) wrote: Quote:
On Jul 2, 12:27 pm, Jerry Stuckle <jstuck...@attglobal.netwrote: Quote:
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.
| | > Quote: Quote:
PHP isn't what's slowing you down; it only gets involved once the file
has been uploaded.
| | > Quote: Quote:
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attglobal.net
==================
| | > Quote:
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!!!!!)
| >>
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. | 
July 2nd, 2008, 01:35 PM
| | | Re: Want to increase upload speed : php
Gordon wrote: Quote:
On Jul 2, 12:50 pm, Jerry Stuckle <jstuck...@attglobal.netwrote: Quote:
>C. (http://symcbean.blogspot.com/) wrote: Quote:
>>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. | 
July 2nd, 2008, 06:35 PM
| | | Re: Want to increase upload speed : php
The Natural Philosopher wrote: Quote:
Gordon wrote: Quote:
>On Jul 2, 12:50 pm, Jerry Stuckle <jstuck...@attglobal.netwrote: Quote:
>>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. jstucklex@attglobal.net
================== | 
July 3rd, 2008, 09:05 AM
| | | Re: Want to increase upload speed : php
On Jul 2, 11:27 pm, Jerry Stuckle <jstuck...@attglobal.netwrote: Quote:
The Natural Philosopher wrote: Quote:
Gordon wrote: Quote:
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.
| | > Quote: Quote:
>--
>==================
>Remove the "x" from my email address
>Jerry Stuckle
>JDS Computer Training Corp.
>jstuck...@attglobal.net
>==================
| | > Quote: Quote:
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.
| | > Quote: Quote:
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.
| | > Quote:
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.
| > Quote:
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) | 
July 3rd, 2008, 10:35 AM
| | | Re: Want to increase upload speed : php
Devang wrote: Quote:
On Jul 2, 11:27 pm, Jerry Stuckle <jstuck...@attglobal.netwrote: Quote:
>The Natural Philosopher wrote: Quote:
>>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. jstucklex@attglobal.net
================== | 
July 3rd, 2008, 11:55 AM
| | | Re: Want to increase upload speed : php
On Jul 3, 9:59 am, Devang <devang...@gmail.comwrote: Quote:
On Jul 2, 11:27 pm, Jerry Stuckle <jstuck...@attglobal.netwrote:
>
>
> Quote:
The Natural Philosopher wrote: Quote:
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.
| | > Quote: Quote:
>>--
>>==================
>>Remove the "x" from my email address
>>Jerry Stuckle
>>JDS Computer Training Corp.
>>jstuck...@attglobal.net
>>==================
| | > Quote: Quote:
>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.
| | > Quote: Quote:
>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.
| | > Quote: Quote:
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.
| | > Quote: Quote:
If the user is on ADSL, or another asymmetrical protocol, it will be far
slower to upload as well.
| | > Quote:
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.
| > Quote:
--
==================
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. | | Thread Tools | Search this Thread | | | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | | | | What is Bytes?
We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights.
Get the best answers to your questions from over 220,989 network members.
|