Lesson Simplifying navigation with PHP includes

Download for PC
(Premium Only - read more)

Download for Mobile
(Premium only - read more)

Download lesson notes
(Premium only - read more)

Anybody who has ever created a website with more than one page knows what a pain it can be to update. If you want to change an image in your header, for instance, you might need to make the change to a hundred pages, giving your self RSI and causing your head to explode.

There is a way around this. PHP includes basically allow you to create one file, and then include this file in lots of pages. Then you can make changes to all these pages just by changing this one file.

Sound good?

PHP includes are great for lots of things. All your pages might share a common header, for example. You might have some standard boilerplate text down the bottom of your page that is the same throughout your site. You can even use it to for your AdSense boxes.... put the AdSense code into a separate file and then just include it in all your pages. Then if you ever want to change the way your AdSense is laid out... just change this one file and bam! Done!

Where PHP includes are really useful, though, is...

Log in to view the full lesson (or join free!)

Not a member yet? Joining Affilorama is free, and gives you access to our videos, tools, interviews and forum.
Become a member now »

Join


Enjoy this lesson? Save it, or Share it with the world!

bookmark it on delicious Digg it
Add to favorites

© 2006 - 2010 Affilorama Group Ltd. All Rights Reserved.