Hi, so I am designing a website and each page has the same menu, footer and meta info.
To cut down on the repetition, I've put all of this info into separate html files and recall them on each page using echo and include. Everything works ALMOST perfectly. The problem is that the include command returns a one after everything. This is my code:
<html><head><title>Title</title>
<?php
echo include("meta.html");
echo include("menu.html");
?>
test
<?php
echo include("footer.html");
?>
(all the tags are closed in the html files)
And my output looks like this:
<meta html></meta html>1
<menu html></menu html>1
test
<footer html></footer html>1
I've read the manual and understand why the one is there, but I can't figure out how to get rid of it!