its me again, I have a function within my module, which counts and downloads files:
Code: Select all
..
//prepare header
header("Content-type: ".filetype(PATH.$filename));
header("Content-Disposition: attachment; filename=".$filename);
header("Content-Length: ".filesize(PATH.$filename));
readfile(PATH.$filename);
exit;
..
I have CMS HTML-Code within my downloads.
Can somebody help me?
Kind regards,
Jens