header('Content-Type: application/force-download; name="'.$filename.'"'); header('Content-Transfer-Encoding: binary'); header('Content-Length: '.strlen($content)); header('Content-Disposition: attachment; filename="'.$filename.'"'); header('Expires: 0'); header('Cache-Control: no-cache, must-revalidate');