how do network files transfer working in PHP?

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
modpriest
Forum Newbie
Posts: 4
Joined: Tue Feb 26, 2008 9:48 pm

how do network files transfer working in PHP?

Post 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... :wink:
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: how do network files transfer working in PHP?

Post 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.
User avatar
Eran
DevNet Master
Posts: 3549
Joined: Fri Jan 18, 2008 12:36 am
Location: Israel, ME

Re: how do network files transfer working in PHP?

Post 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?
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: how do network files transfer working in PHP?

Post 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.
Post Reply