Re: Need Some Direction

From: Date: Sat, 07 Aug 2004 09:19:02 +0000
Subject: Re: Need Some Direction
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-193070@lists.php.net to get a copy of this message
"Aaron Todd" <aaloki88@hotmail.com> wrote in message news:20040806193039.85741.qmail@pb1.pair.com... > Do you recomend the same for downloading of a file. I have a few zip files > that need to be protected too. Do I have to open the file using fopen and > then write it to the users machine using fwrite? > > Thanks, > > Aaron You can do this for any type of file. Set the aprropriate headers and then use readfile(): http://de2.php.net/manual/en/function.readfile.php Regards, Torsten

« previous php.general (#193070) next »