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