In an application, sometimes we need to get the current page URL in php. I mean, the URL shown in the browser. Here is how you can do it.

First, we will declare and use the function as the following:

Hope you will like it :)

You may also read:  Create a dynamic image gallery using ajax, jquery and php (XML also)

Leave a Reply