Re: [PHP] Include/require and the HTML Code

2002-08-14 Thread Sascha Braun
Maybe something wrong with the return? I was thinking about return What?. (U understand me?) in Javascript a simple return does nothing. maybe you can just leave the return out of your script. - Original Message - From: Mike Eales [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

Re: [PHP] Include/require and the HTML Code

2002-08-14 Thread Bas Jobsen
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; } ? -- PHP General Mailing List (http://www.php.net/)

RE: [PHP] Include/require and the HTML Code

2002-08-14 Thread Peter Houchin
Mike, i had no problems with this.. !-- index.php -- ? include('Functions.inc'); HtmlHeader(); ? # Do things ? HtmlFooter(); ? !-- Functions.inc-- ? function HtmlHeader() { ? !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN htmlhead

RE: [PHP] Include/require and the HTML Code

2002-08-14 Thread Michael Eales
the function that this problem arises. Thanks again Mike. -Original Message- From: Bas Jobsen [mailto:[EMAIL PROTECTED]] Sent: Thursday, 15 August 2002 6:52 AM To: Mike Eales; [EMAIL PROTECTED] Subject: Re: [PHP] Include/require and the HTML Code Can anybody tell me why I get a Parse error

Re: [PHP] Include/require and the HTML Code

2002-08-14 Thread Chris Shiflett
I'm not sure about others, but I am glad this behavior is like this. It is very nice for modules to stand on their own so to speak, so that you don't have to worry about what context they are used in. If the file you are including is plain HTML, would you want it to be parsed as if it were