PDA

View Full Version : When is /big/dom added and when is it not?


Tog
01-30-2000, 12:25 AM
When does "/big/dom" get prefixed to your external file references in your PHP scripts? I find when using require, /big/dom gets prefixed but when using ReadFile() function, /big/dom is not. Are there any other cases I should be aware of.

I believe the purpose of having /big/dom automatically added to your external file references is a security measer. So then is the files in my domain safe from someone using ReadFile() and specifying a absolute path location to my files (assuming they know the location prehand)?

Note: I'm using ReadFile() to read the contents of files that are outside my web tree to prevent people from accessing them without permission.

Tony