Re: Need Some Direction

From: Date: Fri, 06 Aug 2004 19:30:38 +0000
Subject: Re: Need Some Direction
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-193033@lists.php.net to get a copy of this message
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 "Ed Lazor" <Ed.Lazor@d20News.com> wrote in message news:php.general-192993@news.php.net... > Adding to what Miles says, use the fopen and fread commands (see manual on > the PHP site) for accessing the PDF files so that you can send copies of > them to the user. Examples are in the user comments of the manual. > > > -----Original Message----- > > At 05:42 PM 8/5/2004, Aaron Todd wrote: > > >So far I have made this work. But now I have to ask...what about a pdf > > >file? I cant add php code to it so what do I do. I need to be able to > > >restrict the pdf so a user can only get to it during a current session. > > > > > >Thanks again for all the previous posts. You all directed me to a good > > >place. My pdf files sliped my mind when I posted. I should have added > > this > > >problem before. > > > > > >I hope it can still be done. > > > > > >Thanks, > > > > > >Aaron > > <snip> > > > > Put the directory containing the .pdf's outside the web tree (webroot & > > descendants). > > > > Miles

« previous php.general (#193033) next »