The full path and filename of the file with symlinks resolved. If used inside an include, the name of the included file is returned.
Your functions are bloated. Put them on a diet. Think "skinny" and "as few lines as possible."
More coming soon…keep checking back.