Menu
How could I retrieve the current script’s URI? The $_SERVER[‘SCRIPT_URI’] variable works on some, but not all servers. I need a method that will work universally.
Previously, I had been attaching a constant that held the site’s URI to $_SERVER[‘REQUEST_URI’]. This worked fine with sites that had URI’s like [url]http://example.com[url]http://example.com/mydir
Any suggestions?