Here's a somewhat stupid question... Is there a fast and easy way to get the name of the current working directory from an environment variable or similar without having to run an ereg() function.
It's been a long week and my brain is fried
heyrad
$DOCUMENT_ROOT
Or
$SCRIPT_FILENAME, but you'll have to shave the filename off the end if you just want the DIR.
use the command getcwd(). It returns the current directory as a string in the form "/path/to/documents".
Mark.