Hi everyone,
On my old webserver they had a program which logged each visiters ip adress.
I searched the internet for php codes and found this
Would this log each visitors ip adress. I know that cutting and pasting php codes can be dangerous so I just wanted to check if it does what it's meant to.PHP Code:<?php
file_put_contents('ips.log', $_SERVER['REMOTE_ADDR'] . "\n", FILE_APPEND);
?>
Thanks.



Reply With Quote

Bookmarks