Adding header...
| From: | Martin Thoma | Date: | Tue, 29 Aug 2000 09:40:48 +0000 |
| Subject: | Adding header... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-14081@lists.php.net to get a copy of this message | ||
Hello !
I got a problem: I wrote a script, that sets a cookie and makes some
output. The user of the script should be able to include the script in
the middle of his html-page.
Of course, there is some html-output, before my script is called. Also
it's not possible to set the cookie (Warning: Header already set...).
The script has to be included in the middle, because it makes some
output. It would be uncomfortable for the user to include 2 scripts (of
course, this would be a solution).
Is there any way to "buffer" the output of the html-code above my
script, set the header and then printing the buffered output ?
Regards
Martin