Intelligent Design
  • Home
  • About
    • Frequently Asked Questions
    • Why the Name, Intelligent Design?
    • Our Blog
    • The Making of a Website
    • The Anatomy of a Website
  • Services
  • Prices
    • Web Design Quote
  • Portfolio
    • Print Design
    • Logo Design
    • Website Design
  • Contact

Blog

Home / Custom web components / Universal error message handler created

Universal error message handler created

May 27, 2011GeorgeCustom web components, Custom Websites, May, 20110 Comment

PHP does a nice job of including files within files on the server before they are viewed in a browser.  If there are standard header/footer files to include, I can use the same universal error message handler file and the same lines of code in the .htaccess file to redirect all errors to this one file, which includes the header and footer (to look like the rest of the site), and it can display a custom message per error status code via $_SERVER[‘REDIRECT_STATUS’] and other variables.

The nicest thing about this system is that I can use nearly the exact same file for all of my sites, and it will match the design of each site.  Considering there are 30 different HTTP error status codes, this saves a lot of time.

Tags: custom,  error message,  htaccess,  PHP,  website

Written by George

Related Posts
← Photography and more stylizing for bulldog website
2 websites built for Liberty Engineering in Hamburg →
© Copyright 2013 - All Rights Reserved
  • Twitter
  • Facebook
  • Dribbble
  • LinkedIn