php - Html body tag how to link to default html page -


i making cms software, , need php generate pages, of content on pages same, wondering possible link body tag default html page. example have html page <body> <h1> hello </h1> </body> , pages php generate have content. did searching , found 1 question did not have detailed answer, , tried creating html page(for example called page.html) <body> <h1> hello </h1> </body> , make php generate body using <body src="page.html"></body no luck.

thanks in advanced

remember can include files in php, can include , push html files piece piece.

for example,

header.html :
<html><body><h1>hello</h1>

footer.html
</body></html>

in php, can :

include header.html
include unique_page_content_here
include footer.html

many mvc frameworks allow easily


Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -