1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Need to Copy Files to my Hosting Account (Help)

Discussion in 'Web Hosting' started by amandeepmail, Jul 5, 2008.

  1. #1
    I want to copy files to my hosting account directly from http download link. I mean I have the link of file like (http://www.fake.com/fake.mpg) and i WANT THIS FILE UPLOADED TO MY SERVER.
    What i am doing is downloading it to my computer then uploading it using a FTP Client but I want to do it directly.
    THAT LINK-My SERVER

    Please help me.
     
    amandeepmail, Jul 5, 2008 IP
  2. pr0t0n

    pr0t0n Well-Known Member

    Messages:
    243
    Likes Received:
    10
    Best Answers:
    10
    Trophy Points:
    128
    #2
    Do you have ssh access on your hosting account? If you do, you can try something like this from command line:
    wget http://www.fake.com/fake.mpg
    Code (markup):
    or if that doesn't work, and it probably doesn't try this:
    lwp-download http://www.fake.com/fake.mpg
    Code (markup):
     
    pr0t0n, Jul 5, 2008 IP
  3. calum

    calum Peon

    Messages:
    2,821
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    0
    #3
    SSH is the best, using the method listed above.

    If you don't have SSH, you may be able to run it in php using:

    exec("wget http://www.fake.com/fake.mpg") or to give pr0t0n's command:

    exec("lwp-download http://www.fake.com/fake.mpg")

    So you would make a php file, call it something like transfer.php and in it put:

    An even better way is this little script:

    http://www.animeresource.org/include/transload.ace

    Download it and extract using winzip, winrar, winace or something like that. Then upload the file to your server. Change the permissions of the file and the directory to 0777 then load the file.

    Fill out the form, click transfer and wait. You may have to edit your php.ini to raise the max execution time.
     
    calum, Jul 5, 2008 IP
  4. amandeepmail

    amandeepmail Banned

    Messages:
    408
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #4
    How do I change the permission to 077 I mean I didn't get it. Can you be more precise and clear I am a newbie....plz
     
    amandeepmail, Jul 5, 2008 IP
  5. amandeepmail

    amandeepmail Banned

    Messages:
    408
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #5
    OK I googled it and got it myself Thanks for your kind help. I was lookinf for this script from last month and now when I wasn't able to find I posted it.
     
    amandeepmail, Jul 5, 2008 IP
  6. calum

    calum Peon

    Messages:
    2,821
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Do you still need help or were you able to move them?
     
    calum, Jul 6, 2008 IP
  7. amandeepmail

    amandeepmail Banned

    Messages:
    408
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I was able to move them. Thanks all! Closing the thread now.
     
    amandeepmail, Jul 6, 2008 IP
    pdfmania likes this.