Website automatically downloading a bunch of .txt files

A URL can be used as a filename with this function if the fopen wrappers have been Most if not all browsers will simply download files with that type. But there are some headers, which PHP itself outputs automatically, disturbing this. $http_stat_code = readfile_if_modified($filename, array('Content-Type: text/xml'));