Include a repetitive chunk of html with PHP?
- by user146780
I basically have a div on my Web 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 aswell.
Thanks