Re: Determine folder a script is running in.
AnrDaemon a écrit :
> realpath('.'); does exactly waht it does - returning real path to the current
> working directory.
Well, I prefer, as you also stated, the getcwd function, cause it really
"says" what it does (aka CWD, which acronym I knew anyway ^^).
"working directory" is just the clearest thing to explain this matter.
"the folder a script is running in" wasn't, nor is "realpath", neither
was my "real script folder" (referring to the folder the script is
located in - since you asked ^^).
Anyway, no need to spend ages on words and sentences, that won't change
anything for php. Only users possibly referring to this topic should
know whether to search for a working directory or a "location"
directory. Thus, I wanted to deal with this issue, that may occur anytime.
Regards,
--
Guillaume
|