php include absolute path code example Example: absolute path php // File in htdocs MAMP echo getcwd(); //Users/Example/Applications/MAMP/htdocs