B
Ben Bacarisse
dorayme said:Udo Huebner <[email protected]> wrote:
In all your html files (even though they might end in .php) at the
point at which you would normally have something like
<ul class="footer">
<li>...</li>
<li>...</li>
<li>...</li>
<li>...</li>
<li>...</li>
</ul>
you instead put
<?php include ("includes/footer.inc"); ?>
I'd suggest using '...' rather than "..." when offering "cut-and-paste"
code since there is only one special case with '...' quotes. Windows
users in particular may fall foul of writing "includes\footer.inc" with
unintended effects. Also (minor point) include is not a function but a
control structure, so the brackets are not needed. The ; is also
optional at the end of PHP section, so the simplest include looks like
this:
<?php include 'includes/footer.inc' ?>
I think it helps to make it all seem slightly less magical.
<snip>