Hi
I have a script below that output files. But there is one problem. When i try to output javascript files with it i does not take the whole file in the output. Other files works well like exe files and images. What have i done wrong?
header("Content-Type: ".$fileRow["mime"]);
header("Content-Length: ".$fileRow["size"]);
header("Content-Disposition: filename=".$fileRow["filename"]);
$fp = @fopen(PATH_FILES."/".$id."/".$fileRow["filename"],"r");
fpassthru($fp);
exit;
/ Jon