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
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
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
3 matches
Mail list logo