How to get client ip address and port in php ? i need to implement this to with when visitors come with IP and PORT ?
$linebyLine = date('Y-m-d H:i:s') . " - $_SERVER[HTTP_CF_CONNECTING_IP]";
file_put_contents('visitors.log', $linebyLine . PHP_EOL, FILE_APPEND);