Topic awaiting preservation: Download/Upload file with URL |
|
---|---|
Author | Thread |
Bipolar (III) Inmate From: Belgium |
posted 07-24-2003 13:32
Hi All, |
Maniac (V) Mad Scientist From: :morF |
posted 07-24-2003 14:04
Which programming language were you thinking of using? I'd personally use PHP for this (then again I'd personally use PHP for almost everything ). You could do it by getting the script to open up the file, store it's contents and write them into a file using the same file name and extension type. |
Bipolar (III) Inmate From: Belgium |
posted 07-24-2003 14:40
Yes I was thinking about PHP to do achieve this but my knowledge of PHP is not that big. |
Maniac (V) Mad Scientist From: :morF |
posted 07-24-2003 14:41
Hang on...are you thinking of doing this from a site that isn't yours to a site that is yours? that's stealing mate...and I won't help you do that. |
Bipolar (III) Inmate From: Belgium |
posted 07-24-2003 14:49
Yes, I think you could (ab)use it this way but that's not my intention. |
Maniac (V) Mad Scientist From: :morF |
posted 07-24-2003 14:51
Well...it is entirely possible to do it...I'm a bit busy right now, but I'll write up a hack for it sometime soon. |
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
posted 07-24-2003 16:42
you'll hast have to grab the url from the form, fopen() it, read it, extract it's filename, store it, and you're set. |
Bipolar (III) Inmate From: Belgium |
posted 07-25-2003 11:36
Nice excercise, indeed. |
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
posted 07-25-2003 14:20
Sorry? |
Bipolar (III) Inmate From: Belgium |
posted 07-25-2003 15:36
Nope, all the urls I submit start with "http://". code: $url = addslashes($url);
|
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
posted 07-25-2003 21:01
well, it should work for full urls (like http://www.example.tld/myfile), |
Bipolar (III) Inmate From: Belgium |
posted 07-28-2003 11:21
A lot of information there. |
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
posted 07-28-2003 13:27
I'll only know when I look at it. |
Bipolar (III) Inmate From: Belgium |
posted 07-28-2003 14:22
Never mind, here's the solution! code: <?PHP Thanks for the tips. |
Nervous Wreck (II) Inmate From: |
posted 08-10-2003 04:58
What OS are you using? Do you have an ftp client? Windows might use ws-ftp. I use gFTP in Linux an this is what I do. |