hi
I want to generate a .txt file, and then SHOW it in my browser. However, it automatically starts a download session. How do I tell the browser to show it instead of downloading it to a file?
Thanx!
Arnout
header("content-type: text/html");
i think that is the mime you want to use...
Andreas
nopz...i found it already, besides, with text/html it doesn't show the '\n's, only '<br>'s
thanx anyway
this was it:
header("Content-type: text/plain");
$filename_no_path = 'something.txt'; header("Content-Disposition: filename=$filename_no_path");