the art of php include().

Web Development

Let’s face it, no one wants to make several changes to the same portion of a web page when you have static information/pages. Enter php include(). If you have a common header, footer, block of information that needs to be on multiple pages and the thought of only editting something once instead of on multiple pages, php include is for you! (assuming you have php installed on your server)

Example:
To include a common header:

(you would place this statement in your code wherver you would like your header to be located)

Once you make a change to header.html, all pages that have the include statement will be updated. One file, one update, several pages updated.

On sites that have several static pages, I try to use as many include statements as possible for common elements so that I can spend more time on development and not having to worry about updating hundreds of pages every time something needs to be changed.

Leave a Reply

Your email address will not be published.
*
*

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Serenity Now! Standards

six flags, take two.

Having a Six Flags’ season pass is great. We can make a last minute decision to go to Six Flags in the afternoon or after dinner, and that is what we did on Saturday. Figuring the park would start to slowly empty at 5pm, well we were mistaken, but perhaps it was because we just […]

CSS jappler.com Standards Web Development

conquerer of css layout!

I finally took the next step with CSS and created/modified my digitalclutter layout so I now have more time to focus on my content! I will be adding/adjusting some little things, but I think I am finally happy with the layout.