SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Apr 2003
    Location
    New York
    Posts
    87
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    PHP script to transfer files between servers

    I'm basically looking for a php script that could run either in the crontab (server side) or by just by opening it on the web which can transfer files between servers (fxp). But in addition to just streaming individual files between servers (you can do that just in shell manually) it would have to check for new files on server #1 and then say if they are not no server #2 then automatically stream.

    Anyone have anything in mind?
    TightBeatZ.com: Free Underground Hip-Hop loops
    Pregaming.com: Game Videos and Trailers

  2. #2
    Free me php klassicd's Avatar
    Join Date
    Sep 2001
    Location
    San Diego
    Posts
    509
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Get a file listing and place all the files in a specific dir into an array. Then loop through them and check if the exist. If they dont use php_ftp functions and place the file on the server.

    Might get kind of complicated if you need to synch both servers up with diff file systems on each machine.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •