I can’t seem to find a super-global for this. Basically, if a PHP file is executed on, say, http://www.example.com/services/page.php, I would like to retrieve http://example.com/services. How do I achieve this?
I can’t seem to find a super-global for this. Basically, if a PHP file
Share
You can abuse
dirname: