Author Topic: Hmm...do you think it's possible?  (Read 3009 times)

The SaiNt

  • *
  • Posts: 1300
    • View Profile
Hmm...do you think it's possible?
« 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?

Darkness

  • *
  • Posts: 2181
    • View Profile
    • http://www.x0r.net
Hmm...do you think it's possible?
« Reply #1 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.

Evil Peer

  • Guest
Hmm...do you think it's possible?
« Reply #2 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

ficedula

  • *
  • Posts: 2178
    • View Profile
    • http://www.ficedula.co.uk
Hmm...do you think it's possible?
« Reply #3 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.

Joey

  • *
  • Posts: 1095
    • View Profile
Hmm...do you think it's possible?
« Reply #4 on: 2002-01-04 23:35:00 »
How does xdrive do it?