Re: ignoring HTML comment style
| From: | Lars Torben Wilson | Date: | Tue, 19 Oct 1999 18:46:21 +0000 |
| Subject: | Re: ignoring HTML comment style | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-11774@lists.php.net to get a copy of this message | ||
Hamdouni El Bachir writes:
> Hi,
> i was searching how to tell php3 to not send html comments to STDOUT
> because of "dreamweaver" Templates comments that are always in the top
> of the file.
> i did it with by modifying "language-parser.lex" (if someone are
> interested i can put it here) .
> but this pushed me to an other question how to send php3 to send the
> header before any output even if the php command is after some html
> code?
> any suggestion?
>
> Hamdouni El Bachir
You'd have to rewrite PHP3 to store everything that might otherwise be
output until after the page processing is completed, then output the
headers, then output the page text. You could also have
user-controllable output buffering commands, such as PHP4's ob_*()
functions. I haven't looked at PHP4's output buffering, so I don't
know how easy it would be to backport.
Torben