Re: FTP a file from a page

From: Date: Thu, 30 Nov 2000 22:54:51 +0000
Subject: Re: FTP a file from a page
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-28138@lists.php.net to get a copy of this message
there is a nice solution with wrong headers: Header("Content-Type: something/wrong"); Header("Content-Disposition: attachment; filename=".$fname); $fp=fopen($fname,"r"); fpassthru($fp); it works! > 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 ===================== Slavko Dervisevic Agencija INSIDE http://www.unovomsadu.com/

« previous php.general (#28138) next »