skip to main | skip to sidebar

How to Build a Website

This website provides guidance in building your own website and aims to share some of the lessons I've learned over the last few years. It is written with my friends Steve and Ange Cocker in mind, to help them build an important website but I hope others might find it useful too. They are smart cookies so this will not be a dummies guide.

This modest effort was inspired by Fergus Cocker.

Monday, May 05, 2008

Better PHP Includes - php includes - solving "no suitable wraper could be found"

I've had a few problems with PHP Includes done at the directory level. Particularly with the $root variable I mentioned in a previous post.

34sp pointed out that, "If you simply use the $_SERVER['DOCUMENT_ROOT']."/path/to/file" it is more secure", so that's what I'm doing now.
Posted by litsl at 7:29 AM No comments:
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

About Me

My photo
litsl
View my complete profile

Links

  • Home
  • www.litsl.com (my website)

Blog Archive

  • ►  2010 (2)
    • ►  July (1)
    • ►  May (1)
  • ►  2009 (3)
    • ►  July (1)
    • ►  April (1)
    • ►  February (1)
  • ▼  2008 (14)
    • ►  September (1)
    • ►  August (2)
    • ▼  May (1)
      • Better PHP Includes - php includes - solving "no s...
    • ►  April (1)
    • ►  March (1)
    • ►  February (2)
    • ►  January (6)
  • ►  2007 (10)
    • ►  December (2)
    • ►  November (6)
    • ►  February (1)
    • ►  January (1)
  • ►  2006 (12)
    • ►  December (2)
    • ►  November (1)
    • ►  March (1)
    • ►  February (8)