PHP - Getting Current URL

Viewed 80399

This seems like a common questions but none of them seem to be what i'm looking for. If there is a website:

www.example.com/test.php

I want to pull the test.php and if it's something like:

www.example.com/folder/folder1/test.php

I want again to just pull test.php but everything seems to pull the exact path instead of just the page. Any suggestions?

3 Answers
Related