request uri showing include path
Posted
by johnsz
on Stack Overflow
See other posts from Stack Overflow
or by johnsz
Published on 2009-11-23T16:19:30Z
Indexed on
2010/05/10
11:04 UTC
Read the original article
Hit count: 151
I am trying to get the URL from a function I wrote. But because the function is included into the file, its brining back the include path and not the url. Is there a work around?
i should get /example.php but instead i get includes/url-logger.php
this is done via $_SERVER['request_uri']
cheers
© Stack Overflow or respective owner