display visitor ip
I want to display the ip of the visitors to a page. for example if a person visits "test.php" page, i should print the ip of the visitor and time on "test.php" page.
Now my question is that can i print it directly without storing data to database or without writing to text file? Thanks.
1 Answer
just use
$_SERVER[\'REMOTE_ADDR\'] exampleecho \'my ip is:\'.$_SERVER[\'REMOTE_ADDR\']; Posted: MacOS 1 of 1 people found this answer helpful. Did you? Yes No |
© Advanced Web Core. All rights reserved