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.
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):
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.
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
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.