PHP Code for Show user information like IP address, useragent and others

You might have seen some of the sites showing you the information like “Your IP address is ” or “You are using Firefox browser” etc. Its really easy to display or get these user or visitor information using PHP codes. Here in this post, we will write a simple php code for displaying a visitor’s IP address, browser info and where that user came from (Http_Referrer i.e from which url the user clicked to get to your current page).