File Download within Module
Posted: Tue Feb 26, 2008 6:30 pm
Hey,
its me again, I have a function within my module, which counts and downloads files:
This code works fine as standalone, but not within my module.
I have CMS HTML-Code within my downloads.
Can somebody help me?
Kind regards,
Jens
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