Home Get Current Page URL With PHP

    Get Current Page URL With PHP


    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.

    Short URL for this post: http://shor.tt/1XI0