Posted: Wed Mar 23, 2005 4:38 pm
It sets the include path to the current working directory of the script.Ambush Commander wrote: Err... I'm not exactly sure what that INI setting does, but I don't think that's what I meant. Basically, if you're opening files with relative paths, it's imperative that the paths are resolved as if they originated from the root directory (that's why cross linking between directories is a nightmare for me). I think chdir() does the trick.
So, if your app is in:
/home/~Roja/public_html
Thats what the include_path will be.
By doing so, you ensure that you can use relative paths (relative to the install dir of your app), and that you don't need to worry about various server settings.
You'd *think* so, wouldnt you?Ambush Commander wrote:Ah, I see. Then wouldn't that config edit just be the same as the default?
I came across it after several users reported problems in my game related directly to that setting. Long story short, their default wasnt the default.
Never assume a default is universal.