how can I put a file on my server from a direct link without downloading and reuploading .. ?? thx in advance
if there is a file in anysite.com/file.any I want to put it in my site as my-site.com/file.any without downloading and reuploading
I think he mean if he has a domain ex: www.abc.com and there are a file stored in www.123.com/file.exe, he wants a script that can directly transfer the file.exe from www.123.com to www.abc.com ..am i right?
Ah, well if you want the file physically on your server you would need to upload the file to the server somehow. You could do this with a php script, curl() function, and automate the process. Or wget as bond1 said, as long as your able to get server side.
that's exactly what I meant I'm asking who can I do this , what's the script , and what's "wget" , thx in advance
wget is a linux program that fetches web pages and stores them locally. If you have ssh access to your host you'd login and do something like: wget www.123.com/file.exe This would fetch the file and store it locally as file.exe. So if you do this in your websites home directory you could then access the file as www.yoursite.com/file.exe
Enter your SSH root using puTTy (google it). Use "cd home" etc commands to go into directory where you want the file. Write there "wget http://domain.com/file.rar" and it will start downloading that file to your server