Script to download and store files remotely

Discussion in 'Programming' started by muthukswamy, Dec 2, 2007.

  1. #1
    Is it possible to code a script that downloads file from other servers. I mean instead of downloading from a server and uploading to my server, is there any script that can be installed into my server and download the files directly into my server.

    Please help me with this.
     
    muthukswamy, Dec 2, 2007 IP
  2. st1905

    st1905 Well-Known Member

    Messages:
    573
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    135
    #2
    Ok here is the script that does everything you want.

    Regards.
     

    Attached Files:

    st1905, Dec 2, 2007 IP
    muthukswamy likes this.
  3. muthukswamy

    muthukswamy Active Member

    Messages:
    676
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    60
    #3
    Hey thanks for the script. Reps added.

    One little help please. the script requires some alteration (setting "allow_url_fopen" = true). I hope this alteration should be made in php.ini file but I cannot find the file in my Linux VDS. I have root access. Can you tell the path where can i find the file.
     
    muthukswamy, Dec 2, 2007 IP
  4. dman_2007

    dman_2007 Peon

    Messages:
    1,259
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    0
    #4
    It is generally in a subdirectory of the /etc directory, on my system it at /etc/php5/apache2, it can also appear directly below /etc in some systems, basically it depends on the distro you are using.
     
    dman_2007, Dec 2, 2007 IP
  5. muthukswamy

    muthukswamy Active Member

    Messages:
    676
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    60
    #5
    When I press move now. Nothing happens :(
     
    muthukswamy, Dec 2, 2007 IP
  6. SolomonZhang

    SolomonZhang Peon

    Messages:
    523
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Where is the script? Does it has any link? Could somebody kindly PM me the download link?

    regards,
     
    SolomonZhang, Dec 5, 2007 IP
  7. muthukswamy

    muthukswamy Active Member

    Messages:
    676
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    60
    #7
    The script is in the second post, but its not working for me. Not sure where is the problem.

    I finished the file transfer through SSH.
     
    muthukswamy, Dec 5, 2007 IP