WordPress Hosting
Free Photos
WordPress Themes

get the ip address and print in php

<?php $ip = getenv('REMOTE_ADDR'); /* get the ip address */ echo "<br/>"; echo ' ip Address is ' .$_ENV["REMOTE_ADDR"] . '!'; /* print the ip address */ ?>

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.