Easy Menus with PHP, Part 2

Yesterday I discussed the limited options for efficient menu-editing available to beginning Web programmers. As promised, here’s a tutorial for writing your very own PHP includes, a boon to menu-making code monkeys. If you haven’t already, please check out my mini PHP crash course before continuing. Using the include() statement (and it’s partner require() )…

Easy Menus with PHP, Part 1

When I was first starting out in Web design, I quickly learned that updating your site’s menus can become a major chore rather quickly. Since I liked to hard-code everything, I only knew a couple main options, neither of which were great: Update every page manually: This works out for a while, but when you…