I am using a php library which has this code: require_once dirname(__FILE__) . '/config.php';
From what I've read, dirname(__FILE__) points to the current directory.
So wouldn't it be easier to just write require_once 'config.php';?
My only guess here is that including the dirname(__FILE__) ensures that the require_once function uses an absolute rather than relative path.