PHP to save remote image from url to own server

Discussion in 'PHP' started by hansab, Nov 3, 2012.

  1. #1
    I need your help.

    I have a long list of excel file, which has urls.

    URL is in this format

    http://domain.com/maindirectory/IDNUMBER/imagefile.jpg


    EveryID Number is unique.

    What i want is.

    The php script should read the url from excel file or i can put that into text file as well may be. whatever is easy solution. I know you guys must be busy but please help as much as you can.

    The php script should read the url from file (excel or notepad) one by one and then save the imagefile.jpg on my server like this newdirectory/idnumber.jpg

    So in this way, i will have all the imagefile.jpg from remote saved as my idnumber.jpg in newdirectory of my hosting.

    The list is big. around 8000 :(

    Please help.
     
    hansab, Nov 3, 2012 IP
  2. EricBruggema

    EricBruggema Well-Known Member

    Messages:
    1,740
    Likes Received:
    28
    Best Answers:
    13
    Trophy Points:
    175
    #2
    Hi, i can do that for you, its better to save the list as a text file and then read line by line and read the file from the server and save it to your drive.

    If you wish i can create such a script for a little fee... PM if interested! :)
     
    EricBruggema, Nov 4, 2012 IP