<?php $file = fopen("ip.txt","a"); fwrite($file, $_GET['ip']); fwrite($file, "\r\n"); fclose($file); ?>