How to Use PHP to Force a File Download - Web Design/HTML Use PHP and the Content-disposition HTTP header to force files to download that would normally open in the Web browser.