Press "Enter" to skip to content

php includes

php includes – rather than rewrite several lines of code for each page, for example adding a standardized header (or footer) to hundreds of pages, using a php include can save a lot of effort, especially when it comes time that you want to make universal changes across your site….. edit one file ie… header.php and every page calling for it’s header from this file is changed in single shot.

[code]
< ? include("header.php") ?>
[/code]

There are as many uses for using includes as you can imagine, populating a set list of variables, database connection strings…