What I mean is, I want to have a PHP page output a line of text and have the browser prompt the user to download the file as myfilename.txt.
What I've been able to do so far is prompt the user to download the php file with the one line of text I want... so I'm half way there.
All my searches return answers on how to have a script download a file that already exists on the filesystem, but I need to essentially take echoed text and have it download as a file.
Thanks.