Qhimm.com Forums

Miscellaneous Forums => Scripting and Reverse Engineering => Topic started by: The SaiNt on 2002-01-04 14:47:00

Title: Hmm...do you think it's possible?
Post by: The SaiNt on 2002-01-04 14:47:00
I was just thinking it over today.
Do you think it would be possible to write a cgi or php script to request files from other ftp or http servers and send them to a mail account / upload them to webspace for later downloading?
Title: Hmm...do you think it's possible?
Post by: Darkness on 2002-01-04 15:41:00
its *possible*. there is one definite way, but it would require you to download it and upload it which would make it completely pointless.

It may be possible to get it so send it to the server the php or cgi script is on and from there send it to another server. But that may require some commands such as GET and PUT being executed directly off of the server, and i am not sure if cgi is capable of that.
Title: Hmm...do you think it's possible?
Post by: Evil Peer on 2002-01-04 16:18:00
Its definately possible, but you will probably have to wade hip-deep into the mire that is internet protocols.

I ran into that problem with a program I wrote, and subsequently stopped programming it (wasn't worth the effort).

---Evil Peer
Title: Hmm...do you think it's possible?
Post by: ficedula on 2002-01-04 18:46:00
With PHP it might be quite easy. PHP comes with support for FTP built in, IIRC.

Even if it doesn't, you just need your script to fire off a program like ncftp, or wget (Comes with Linux, but there's Windows versions of both too); they're programs that run in the background downloading files, and more importantly, they're command line so can be configured completely through command line parameters. That should work fine.
Title: Hmm...do you think it's possible?
Post by: Joey on 2002-01-04 23:35:00
How does xdrive do it?