My error logs get out of hand with the two errors below
warning feof() expects parameter 1 to be resource
and
warning fread() expects parameter 1 to be resource
Code bit responds
<?php $file = '../upload/files/' . $filex; header("Content-Disposition: attachment; filename=" . urlencode($file)); header("Content-Type: application/force-download"); header("Content-Type: application/octet-stream"); header("Content-Type: application/download"); header("Content-Description: File Transfer"); header("Content-Length: " . filesize($file)); flush();
I used this code to download the headers, but freaking it right now - before anyone asks what I tried, I tried Google, but still do not understand the error message.
Jeff source share