what is this: dirname(__FILE__)?
| From: | Sam Smith | Date: | Mon, 01 Aug 2005 00:04:11 +0000 |
| Subject: | what is this: dirname(__FILE__)? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-219727@lists.php.net to get a copy of this message | ||
I don't recognize this something(__SOMETHING__) format. I know what it's
doing but I don't know how it's doing it.
The whole thing is "$fdf_dir=dirname(__FILE__).'/results';" and of course
it's setting that var $fdf_dir to the path to a file.
Is there something significant about the double underscores "__"?
Why the parentheses, it's not a function?
Sorry lame question but I don't know this.
Thanks