Re: Outputting HTML with PHP - Buffer Problem?
| From: | dirk | Date: | Sun, 12 Sep 2004 16:43:56 +0000 |
| Subject: | Re: Outputting HTML with PHP - Buffer Problem? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-196446@lists.php.net to get a copy of this message | ||
Well, there is a difference between
> function html_head() {
> $html = "<html....................................";
>
> return $html;
> }
and
> function header() {
> <?
> <html
> <head
> <title........
> ?>
> }
The first function you need to call using <? echo header(); ?> to see the output
THe second function is not a real function because it has no return
statement. In german you call this "Prozedur". Don't know if it's the
same as procedure in english. But you will call this piece <?
header(); ?> to see some output.
Dirk