[PHP] RE:[PHP] file knowing its own directory

2004-06-13 Thread Dennis Gearon
Just for the record, (and archives), This can be accomplished by: dirname( __FILE__); This allowes me to put the following into an application's config file, to be included via the prepend, the following localized, global values: (assuming the application's files are kept OUT of the document root

Re: [PHP] file knowing its own directory

2004-06-09 Thread Matt Matijevich
[snip] So, what do I replace I_NEED_A_FUNCTION_HERE with? [/snip] not eaxatly sure what the question is. Couldn't you use getcwd ? That would give you current working directory -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php