and like us on FB

The following function permits you to get the current page (or permalink) URL with PHP. Not unlike regular expression variations, there are numerous methods to return the current URL… so expect this function to evolve over time.

If used on this page, the function would return http://www.beliefmedia.com/code/php-snippets/current-url-php.

Shortt URL for this post: http://shor.tt/2jGT