Devi usare un header Content-type, e la funzione readfile()