# Embedding php in html VS generating full pages?

**URL:** <https://forum.kirupa.com/t/embedding-php-in-html-vs-generating-full-pages/188456>\
**Category:** programming\
**Created:** [May 8, 2006, 4:50am UTC](https://forum.kirupa.com/t/embedding-php-in-html-vs-generating-full-pages/188456 "2006-05-08T04:50:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zicemaster](https://avatars.discourse-cdn.com/v4/letter/z/b77776/32.png) [@zicemaster](https://forum.kirupa.com/u/zicemaster)\
**Post date:** [May 8, 2006, 4:50am UTC](https://forum.kirupa.com/t/embedding-php-in-html-vs-generating-full-pages/188456/1 "2006-05-08T04:50:37Z")

</div>

Title! 🙂 Which is more efficent or prefferable?

Do most websites generate the html for the header and footer? Or is only the content pulled out of the database?

I know how to do it either way… Just wan’t to know whats better!
