In this short snippet, you will find a reasonable and accurate solution to a common PHP: how to get the absolute path to the initially run script.