Download Failing

gazzieh

New Member
I have a piece of code that has, until recently, seemedly working fine:

Code:
$fullpath = 'resources/downloads/' . $info . '.zip';
header("Pragma: public"); // required
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Cache-Control: private",false); // required for certain browsers
header("Content-Type: application/zip");
header("Content-Disposition: attachment; filename=\"".basename($fullpath)."\";" );
header("Content-Transfer-Encoding: binary");
ob_clean();
flush();
readfile( $fullpath );

However, now I am only getting a file of 211 bytes in size. I cannot see what has changed and cannot even begin to think of why this is happening. I doubt it is the code but any ideas?
 
Top