You are here: Attn: Rik Re: Looking for a script to download pdf file from server « PHP Programming Language « IT news, forums, messages
Attn: Rik Re: Looking for a script to download pdf file from server

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация