@bokehDec 02.2005 — #The two easy ways to figure something out in PHP is either echo it:[code=php]echo dirname(__FILE__).'/config.php';[/code]Or consult the manual: [URL=http://es2.php.net/dirname]dirname()[/URL] and [URL=http://es2.php.net/manual/en/language.constants.predefined.php]__FILE__[/URL]
@NogDogDec 02.2005 — #__FILE__ is the full pathname of the file currently being processed. If used within an included file, it returns the pathname of the included file, not the calling file, which might be important in this case and the reason it is being used.
dirname() simply returns the path to the directory in which __FILE__ resides (essentially just trimming the filename off from the full pathname).