RE: [PHP] Need Some Direction
| From: | Ed Lazor | Date: | Fri, 06 Aug 2004 14:34:28 +0000 |
| Subject: | RE: [PHP] Need Some Direction | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-192993@lists.php.net to get a copy of this message | ||
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