Javascript or PHP wget download?

Soldato
Joined
2 May 2004
Posts
19,950
Hi,

I'd like to be able to download a file through a webpage rather than having to login to the shell etc.

Does anyone know of any javascript / php scripts that allow you to enter the URL of the file you want and then download it onto the server.

Would be nice if it could have stats (%, kb/kb etc)

Thanks,
Craig.
 
Security nightmare. Don't do it. Go through SSH.

But if you *really* want to do it , take a look at www.php.net/exec - you should be able to do exec('wget http://...') of course adjusting the wget arguments as necessary.
 
Well, it should be fine if I passworded the download page shouldn't it?

EDIT
Beansprout said:
Security nightmare. Don't do it. Go through SSH.

But if you *really* want to do it , take a look at www.php.net/exec - you should be able to do exec('wget http://...') of course adjusting the wget arguments as necessary.

Is there any way I could get that to output the current progress of the file?
 
Last edited:
Back
Top Bottom