EDIT: DÁ SA TO!
niekedy stačí čítať manuál
kuk sem:
http://www.php.net/manual/sk/function.header.php (tam posledný odsek s kódom, pred komentármi).
toto je ich príklad:
Kód:
<?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');
?>
toto je niečo pre teba:
Kód:
<?php
// We'll be outputting a VCF
header('Content-type: text/x-vcard');
// It will be called downloaded.vcf
header('Content-Disposition: attachment; filename="downloaded.vcf"');
// The VCF source is in original.pdf
readfile('original.vcf');
?>
no ešte tam píšu, že to kvôli bugu nefachá v IE 4.01 a IE 5.5 bez SP2
AD pdfka v opere: CTRL + F12 (Preferences) -> karta ADVANCED -> položka DOWNLOADS -> tam vyberieš PDF -> EDIT -> a môžeš si to nastaviť ako chceš... a to isté aj s ostatnými.
_________________
A. S. Tanenbaum píše:
The terms LF, MF, and HF refer to low, medium, and high frequency, respectively. Clearly, when the names were assigned, nobody expected to go above 10 MHz, so the higher bands were later named the Very, Ultra, Super, Extremely, and Tremendously High Frequency bands. Beyond that there are no names, but Incredibly, Astonishingly, and Prodigiously high frequency (IHF, AHF, and PHF) would sound nice.