|
Posted by Dynamo on 10/03/66 11:48
Many thanks. That does exactly what I want. I already looked at that page in the
php manual and the example code is quite a way down the page. Guess I must have
passed it by.
Regards
Dynamo
In article <e4v8lo$7u1$1@netlx020.civ.utwente.nl>, Rik says...
>1. Turn on error reporting, if this is you script, it will tell you some
>interesting things.
>2. Is /books/ in your root? If not, you can't refer to it like this. Does
>content indeed hold the file, or just 'false"?
>
>Also:
>it's header('Content-type: application/pdf');
>
>
>The exact syntax is in the php-manual as an example for header...
>http://nl3.php.net/en/header
>
>header('Content-type: application/pdf');
>header('Content-Disposition: attachment; filename="name_give_to_user.pdf"');
>readfile('/path/to/original.pdf');
>
>Grtz,
Navigation:
[Reply to this message]
|