RE: [PHP] Include/require and the HTML Code
| From: | Michael Eales | Date: | Thu, 15 Aug 2002 04:43:35 +0000 |
| Subject: | RE: [PHP] Include/require and the HTML Code | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-112678@lists.php.net to get a copy of this message | ||
This did indeed fix the problem, thanks for the advise.
A question though:
Why is this necessary, the include/require is called from index.php while in
"PHP mode" ?
The functions work fine as if I remain in "PHP mode" within the functions.
It is only when I go in and out of "HTML mode" within the function that this
problem arises.
Thanks again
Mike.
-----Original Message-----
From: Bas Jobsen [mailto:bas@startpunt.cc]
Sent: Thursday, 15 August 2002 6:52 AM
To: Mike Eales; php-general@lists.php.net
Subject: Re: [PHP] Include/require and the HTML Code
> Can anybody tell me why I get a "Parse error: parse error,
> unexpected '}' in /usr/local/apache/htdocs/logbook/Functions.inc on line
begin and end your include files with <? and ?>
<?
function HtmlHeader()
{
?>
bllaalla
<?
return;
}
?>