hi,
header('Content-Type: application/pdf');
header('Content-Transfer-Encoding: Binary');
header('Content-Disposition: attachment; filename=lademich.pdf');$daten=mach_daten();
exit($daten);
Ja gut soweit komme ich schon mit, aber warum exit() und nicht readfile() (wie normaleerweise bei PHP-Downloads üblich)?
weil deine bedingung lautete
Sie soll quasi "on the fly" generiert werden und über header geöffnet werden, _ohne_ dass sie vorher (weder auf dem Server, noch in der Db) zwischengespeichert werden muss.
und jetzt überlege mal, warum readfile readFILE heißt.
gruß,
wahsaga
--
/voodoo.css:
#GeorgeWBush { position:absolute; bottom:-6ft; }
/voodoo.css:
#GeorgeWBush { position:absolute; bottom:-6ft; }