PHP Include

The include() or require() function allows to insert the content of one PHP file into another PHP file before the server executes it. These two functions are used to create functions, headers, footers, or elements that will be reused on multiple pages. include() and require() functions are quite identical, except they handle errors in different ways. include() generates a warning, but the script will continue execution, while require() generates a fatal error, and the script will stop. Server side includes save a lot of time. You can create a standard header, footer, or menu file for all your web pages. When the header needs to be updated, you can just update the include file. And when you add a new page to your site, you don’t need to update the links on all your web pages. Just change the menu.

AJAX responseXML
AJAX Live Search
PHP File