<?php header("Content-Disposition: attachment; filename=test file.txt"); header("Content-Type: text/plain"); ?> Test file content.