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
[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
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 sayi
3 matches
Mail list logo