Re: [PHP] what is this: dirname(__FILE__)?

2005-08-01 Thread Burhan Khalid
On Aug 1, 2005, at 3:18 AM, Robert Cummings wrote: On Sun, 2005-07-31 at 20:04, Sam Smith wrote: I don't recognize this something(__SOMETHING__) format. I know what it's doing but I don't know how it's doing it. Constants of the type __SOMETHING__ are historical constants for retrieving

Re: [PHP] what is this: dirname(__FILE__)?

2005-07-31 Thread Robert Cummings
On Sun, 2005-07-31 at 20:04, Sam Smith wrote: > I don't recognize this something(__SOMETHING__) format. I know what it's > doing but I don't know how it's doing it. Constants of the type __SOMETHING__ are historical constants for retrieving contextual information about the source code in which the

[PHP] what is this: dirname(__FILE__)?

2005-07-31 Thread Sam Smith
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 under