RE: [PHP] Include vs. Header
| From: | Matt McClanahan | Date: | Sat, 07 Oct 2000 00:12:31 +0000 |
| Subject: | RE: [PHP] Include vs. Header | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-19012@lists.php.net to get a copy of this message | ||
On Fri, 6 Oct 2000, Eugene Yi (InfoSpace Inc) wrote:
> Thank you so much for your reply. Will there be any restrictions to call
> cookie function if I use include(), since cookie function requires no header
> info passed prior to calling it...
Well, as with any other HTTP Header, cookies need to be sent before any
content. In some circumstances you can work around this with output
buffering. http://www.php.net/manual/ref.outcontrol.php
Matt