PHP Current URL

How to Get the Current URL with PHP?

Usually, I use this code to get the current page full URL that is shown in the browser URL window. PHP current url without query string.
To get the current page URL, you just need to do this:
echo currentURL();

If you just want to get page name only, you can use the script below: These code taken from:
Posted by A Faqihuddin Latheif on 2013-03-25 15:49:43 Categorized in :, PHP