SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Dec 2008
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How do i connect local directory(on server) to remote directory?

    for example, i have 2 servers. one ofs ip 1.1.1.1 and the other ones 2.2.2.2.

    i have upload directory on both servers. can i connect first's upload directory to second one.

    PHP Code:
    copy ("tmp/1.jpg","upload/1.jpg"); 
    this code works on both servers. but i want that, if i run this command on first server, 1.jpg must send to second servers upload directory. is this possible? i googled and found something about virtual directory, ln command. but its not solving my problem.

    note: servers are litespeed.

  2. #2
    SitePoint Zealot GOPalmer's Avatar
    Join Date
    Jan 2009
    Location
    Wiltshire, UK
    Posts
    125
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Take a look at this PHP: FTP - Manual

  3. #3
    SitePoint Member
    Join Date
    Dec 2008
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thx for reply.

    do i have to change the code? is there any easy way to do this? maybe server module

  4. #4
    SitePoint Zealot GOPalmer's Avatar
    Join Date
    Jan 2009
    Location
    Wiltshire, UK
    Posts
    125
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Using FTP is the easy way if you want a copy of the file on both servers.


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
  •