sometimes it is required to get the Current Working Directory of the script.
so to get the current working directory in php this is a small function.
This post first appeared on PHP Scripts And Programs For Beginner To Master, please read the originial post: here