How-to articles, tricks, and solutions about DIRNAME
PHP how to go one level up on dirname(__FILE__)
You can use dirname(dirname(__FILE__)) to go one level up in the directory structure when using __FILE__ (which returns the current file's path).