Get Current Page URL using PHP

3

This php snippet prints current page url. It accepts a Boolean parameter as TRUE/FALSE which acts as a flag for displaying query string. It returns the current site URL.

How to use this function.

 

Share.
 

About Author

Entrepreneur & Dreamer

I am a passionate Software Professional, love to learn and share my knowledge with others.

Software is the hardware of my life.

3 Comments

  1. Superb blog! Do you have any helpful hints for aspiring writers?
    I’m hoping to start my own website soon but I’m a
    little lost on everything. Would you recommend starting with a free
    platform like WordPress or go for a paid option? There are so many options
    out there that I’m totally overwhelmed .. Any tips?
    Bless you!

  2. Piece of writing writing is also a excitement, if you know after that
    you can write if not it is complicated to write.

Leave A Reply

CommentLuv badge

Get more stuff like this
in your inbox

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.