|
Posted by Fredrik Arild Takle on 10/14/50 11:18
> Any ideas?
First log the download, then:
http://www.php.net/header
Simple example:
<?php
// We'll be outputting a PDF
header('Content-type: application/pdf');
// It will be called downloaded.pdf
header('Content-Disposition: attachment; filename="downloaded.pdf"');
// The PDF source is in original.pdf
readfile('original.pdf');
?>
Best regards
Fredrik A. Takle
Bergen, Norway
Navigation:
[Reply to this message]
|