Jump to content


Photo

need php script to copy file from one server to another


  • Please log in to reply
2 replies to this topic

#1 vikas_maderna

vikas_maderna
  • New Members
  • Pip
  • Newbie
  • 2 posts
  • LocationIndia

Posted 06 August 2006 - 11:16 AM

Hello,

I want to copy some file from ftp.abc.com/example to ftp.abc.com/example2 on same server using FTP how can i do it. If anyone has done it before please help me.

Thanks

Vikas

#2 shocker-z

shocker-z
  • Members
  • PipPipPip
  • Advanced Member
  • 864 posts
  • LocationNottingham

Posted 06 August 2006 - 12:21 PM

well the easyest way would be to not use PHP and just use FTP command prompt

login into your server and folder and mget *.* then login to the other server and mput *.* all the files which you downloaded..

Not sure if there are any extra fast functions in PHP but i reckon all will take same time as you have to download and then upload which ever way you go about it.

Regards
Liam
www: www.ukchat.ws | irc: irc.ukchat.ws chan: #blufudge

#3 vikas_maderna

vikas_maderna
  • New Members
  • Pip
  • Newbie
  • 2 posts
  • LocationIndia

Posted 06 August 2006 - 12:47 PM

Actually i want to give this facility to user, in this we need to daily transfer lot of file from one server to another. The process is like this:-
First user upload the file. Second user transfer it differenet account. Third user will send it other.

So lot of file are to be transfered that are to be done by user. So we need some script, previously net2ftp was working but after we changed the server it is giving some problem, also on this server php ver is 4.0 previously we were having php5.0

So we are looking for some other option.

Thanks

Vikas




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users