ok, the solution would be using $_SERVER['SCRIPT_FILENAME']
thanks to anno!
[]flint said:
anybody got an idea why this won´t work in the header of UBBT?
<?php echo $SCRIPT_FILENAME; ?>
(displays the current URL)
the idea behind this is, I wanted to check the active URL for the string "community". If found, it would display a little sub navigation for the community.
This way, I could use one header for my entire site.
The script worked fine everywhere, even in includes from other apps, but not in UBBT.
unfortunately, predefined apache variables don´t work in UBBT´s header, and I can´t seem to find out why. I have other little php snippets in header and footer, which work fine, this is the first time something fails to happen. [/]