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 for security's sake)
$APPLICAITON_NAME_VALUES["MAIN_DIR"]= dirname(__FILE__)."/"; //on linux anyway.
$APPLICAITON_NAME_VALUES["NEEDED_VALUE_1"]= 'VALUE_1";
$APPLICAITON_NAME_VALUES["NEEDED_VALUE_2"]= 'VALUE_2";
blah blah
causing VERY little global name pollution.
[EMAIL PROTECTED] wrote:
please CC me 'cause I am on digest
the scenario:
three files:
.htaccess
has line saying "php_prepend 'true_filesystem_location_php_prepend_file' "
prepend.php (aforementioned prepend file)
has line saying "include file_a.php"
file_a.php
has line saying"$my_true_file_system_location = I_NEED_A_FUNCTION_HERE;"
So, what do I replace I_NEED_A_FUNCTION_HERE with?
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php