RE: [PHP] Saving and mailing remote file

From: Date: Thu, 13 May 2004 15:01:47 +0000
Subject: RE: [PHP] Saving and mailing remote file
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-186104@lists.php.net to get a copy of this message
Sascha Meyer wrote:
Hi Jay, that's exactly what I need to accomplish (as I mentioned: I wanted to download the file to the webserver - which means saving the file locally, cause that's where the script resides - and then send it to the email recipient).
I need to find a way to download the file itself, the rest is - as I said before - fairly simple (attaching the file to a mail will be handled by the Mail class).
Anyway, thanks for your time! If the remote file has a URL eg. http://foo.com/bar.pdf you can simply open it using fopen()
HTH, Oliver Hankeln

« previous php.general (#186104) next »