How to download a txt file [closed] June 3, 2022 by Tarik Billa Try : header('Content-Type: text/plain');