Posted in Code, PHP Force Download Dialog with PHP using octect-stream Binny V A April 25, 2008 Leave a Comment on Force Download Dialog with PHP using octect-stream Use this code to force a download of any type of content with PHP header("Content-type:application/octect-stream"); header('Content-Disposition: attachment; filename=filename_' . date('Y-m-d') . '.sql'); print "Hello World"; Author: Binny V AA philosopher programmer who specializes in backend development and stoicism.