Include a repetitive chunk of HTML
php, template-engine
Solution
Simply `include()` the file. The interpreter will drop out of PHP mode back into HTML mode, outputting anything it encounters.
Problem
I basically have a `div` on my site that always has the same stuff. However, this `div` is not present on all pages which is why I won't use the dynamic web template. I was wondering if it was possible for PHP to get the code from a document on the server and put in into the div? Ex: ``` <div id="section... ``` then my text file contains ``` <p>hello</p> ``` Basically I want PHP to put it into the div when the user sees it. If theres a smarter way of acheiving this I'd be open to it as well. Thanks