Log in

View Full Version : where is the DIR directive defined


Frank H. Shaw
01-26-2009, 01:07 PM
I have been looking and can not locate where the DIR directove is defined as in the following example peice of code:



require_once(DIR . '/includes/functions_calendar.php');





I want to use the DIR goblal varable in my custon php mod and can not find it in the vb code - I do have some troubles with my eye site and it might be me - a little explation on the use and where abouts this is defined would help me figure some things out.

THANKS

Frank H. Shaw

Voltar
01-26-2009, 01:13 PM
'CWD' is defined in global.php (and redefined in includes/init.php if it hasn't been defined). 'DIR' is defined in includes/init.php.

Dismounted
01-27-2009, 04:52 AM
You can use getcwd(), "DIR" is the result of this function.