Welcome Guest, Not a member yet? Register   Sign In
File security
#4

[eluser]frist44[/eluser]
It appears that the latter requires ob_clean(). any idea why?

header('Content-Type: application/excel');
header('Content-Disposition: attachment; filename="' . $purchase['title'] . '.xls"');
ob_clean();

echo file_get_contents($fullpath);


Messages In This Thread
File security - by El Forum - 02-02-2010, 02:39 PM
File security - by El Forum - 02-02-2010, 06:59 PM
File security - by El Forum - 02-02-2010, 08:39 PM
File security - by El Forum - 02-02-2010, 09:24 PM
File security - by El Forum - 02-03-2010, 04:53 AM
File security - by El Forum - 02-03-2010, 08:33 AM
File security - by El Forum - 02-03-2010, 07:51 PM



Theme © iAndrew 2016 - Forum software by © MyBB