Include a repetitive chunk of html with PHP?
Posted
by user146780
on Stack Overflow
See other posts from Stack Overflow
or by user146780
Published on 2010-05-19T16:19:20Z
Indexed on
2010/05/19
16:20 UTC
Read the original article
Hit count: 149
php
|web-development
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
© Stack Overflow or respective owner