How to display the IP address of a visitor?

Ask a question





The IP address of a visitor refers to the computer address that has been used by the later and it can be practical in many ways.

You can know who visited your website and from where they are from. You will be able to know how many times the same user has visited the website and what are the favorite sections that are chosen by the user. By this, you can optimize your website depending on your public. Personalizing your website is a great marketing tool that can increase the traffic on your website.


The PHP code for this function is

<? 

echo $_SERVER["REMOTE_ADDR"]; 

?>

How to add an image to your website
Images are not displayed on my website! What can be done?