I am trying to troubleshoot an issue I am having with downloading a \"zip\" file from a php script. It seems that when I download the file using the following code, the dow
I had a similar issue with blank space at the start of an image file.
I suspect my issue was caused by blank space before opening
What worked for me was:
@ob_start(''); //@ supresses a warning //header entries ob_end_clean(); ob_clean(); readfile($file);