Page 1 of 1
how do network files transfer working in PHP?
Posted: Fri Aug 28, 2009 12:51 pm
by modpriest
I primary using php script to transfer file from one server to another server using private port. I have successful transfer using ftp and http but both of the method is very very slow. Sometime i transfer very big files like 1GB, it will cost a lot of time.
Any method is faster than ftp and http? What was it call in PHP?
Really appreciate any suggestion and helps...

Re: how do network files transfer working in PHP?
Posted: Fri Aug 28, 2009 12:56 pm
by califdon
Almost certainly the speed of transfer is dependent on the network connection you are using, not the language or protocol, although FTP is probably more efficient than other protocols, since that's what it's designed for.
Re: how do network files transfer working in PHP?
Posted: Fri Aug 28, 2009 1:01 pm
by Eran
Technically you are right, however most webservers give priority to HTTP over FTP making HTTP transfers generally faster.
Can we see the code that transfers the files?
Re: how do network files transfer working in PHP?
Posted: Fri Aug 28, 2009 1:52 pm
by califdon
pytrin wrote:Technically you are right, however most webservers give priority to HTTP over FTP making HTTP transfers generally faster.?
Thanks, I didn't realize that. Good to know.