php获取访客IP并记录为txt

php获取访客IP并记录为txt
<?$file="ip.txt";$ip=$_SERVER['REMOTE_ADDR'];$handle=fopen($file,'a');fwrite($handle,"IP Address:"...