Re: FTP a file from a page
| From: | Ignacio Vazquez-Abrams | Date: | Thu, 30 Nov 2000 16:47:08 +0000 |
| Subject: | Re: FTP a file from a page | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-28074@lists.php.net to get a copy of this message | ||
On Thu, 30 Nov 2000, Richard Kirk wrote:
> This seems like a simple task but I can't seem to find an example or a
> helpful explanation in the PHP manual...
>
> I want to place a file (.zip as it happens) on a page and when the user
> clicks on the file, have the file FTP'd to them, as opposed to opening it in
> the browser.
>
> Do I prefix the file with ftp:// ? Do I have to reference my
> ISP FTP server?
>
> Help or an example much appreciated.
>
> Thanks
>
> Richard Kirk
>
> ---------------------------
> Phone +44 (0)20 89927280
> Fax +44 (0)8700 553730
> Mobile +44 (0)7966 259512
>
Either FTP or HTTP can be used for this purpose; whether or not the browser
opens the file is pretty much out of your hands regardless of which protocol
you use.
--
Ignacio Vazquez-Abrams <ignacio@openservices.net>