[PHP] Re: including an html file!!

2004-05-30 Thread Johan Holst Nielsen
Godfoca wrote: echo returns 1 on success, so the interpreter first evaluates the expression inside the echo() call, and thus includes the html file, and then, as the evaluation returned 1, it echoes 1 to the final file. Just to clear it out... include does not always return 1. An example File: incl

[PHP] Re: including an html file!!

2004-05-30 Thread GodFoca
echo returns 1 on success, so the interpreter first evaluates the expression inside the echo() call, and thus includes the html file, and then, as the evaluation returned 1, it echoes 1 to the final file. You should only do "include(...)", without the echo. Good luck, Nicolas -- PHP General Mai

[PHP] Re: including an html file!!

2004-05-30 Thread Johan Holst Nielsen
Little Boy wrote: when i include a html file i alwas do it with: echo(include('htmlfile.html')); everythings works fine except the fact, that after the included file the is a '1' printed out, anybody, an idea why??? Because you dont need echo - include output the html :) just Check the documentati