header('Content-Disposition: attachment; filename="' . $filename . '"'); serve solo per avere il nome del file nella finestra del download.


"readfile

(PHP 3, PHP 4 , PHP 5)
readfile -- Invia un file
Descrizione
int readfile ( string filename [, bool use_include_path [, resource context]])

Legge un file e lo scrive nello standard output. "