[Typo3-dev] passing files throu a script
Elmar Hinz
elmar.hinz at web.de
Tue May 25 15:47:37 CEST 2004
Hello,
here comes my third question concerning the file archive.
After sending the headers currently I output the file by readfile().
header("x");
header("y");
header("z");
readfile($file);
exit();
That works so far. According to the documentation one shouldn't output directly,
but by using $TSFE->Content = "My Output".
But this try seems to fail:
$TSFE->Content = implode('', file($file));
Does this approach make any sense, when I need to send headers before?
Should I maybe catch everything by output buffering and handle it to
$TSFE->Content including the headers?
Regards
Elmar
More information about the TYPO3-dev
mailing list