PHP and HTML

Miscellaneous Forums/General Discussion/PHP and HTML

I'm no PHP guru and need a little help.

Let's say I have the same sidebar html code on every page of a website. I don't want to manually go to each page to do changes and would like to have a single php file(if there's another way let me know) containing this code. Now, how would I include a php file and then call the function in the html?

No, I don't want to name the page that contains the sidebar with a .php extension.

<!-- how do I include it?>
<body>
<div id="sidebar">
<!-- how do I make it draw?>
</div>
</body>


Note: bb code would be so much easier for my task. Include "sidebar.bb" : DrawSidebar() Too bad it's not possible.