RE: Re[2]: [PHP] HELP: Nested include(...)'s take relative paths not int uitively

2004-02-11 Thread Alex Hogan
Hi Richard, Why not just set a $basedir value somewhere and always use that in an include/require function: include $basedir/sub/whatever - then no matter where it's called from it'll never be wrong. That makes sense... Is it also recommended that an application local config file be used to

Re[2]: [PHP] HELP: Nested include(...)'s take relative paths not int uitively

2004-02-10 Thread Richard Davey
Hello Alex, Tuesday, February 10, 2004, 8:08:11 PM, you wrote: AH Are you saying that it's better not to use relative paths on include(...)'s, AH require(...)'s and their (x)_once(...) cousins? Relative paths are fine, so long as you have strict control over what is calling the script and from