Taking PHP Below the Root

I'm sure most of us PHP guys have read all the security stuff about how we can best secure our code. Lots of quick sound bits that sound all that good but trying to implement them is another story.

One that I felt was a challenge is taking my PHP code below the webroot level. While many I am sure would be satisfied with getting the choice bits under, but I was thinking it would be best if you could get as much as possible. I could better control what scripts get accessed, etc.

I wanted to make it also so everything worked through one core script. This is for my framework WANDA, which is designed to host multiple programs, so another bit was to do some cleanup work on access and menus. to make the programs closer to plugin ready.

continued

To start, the directory tree:

BELOW WEB ROOT

ABOVE WEB ROOT

Unless I need a temp files directory, this will cover it. In later posts I will go over the code I've developed to get everything working in their places.

~~LINKBACK~~ ~~DISCUSSION~~