now there is a file called 1.php
with the following code
<script src="http://pv.sohu.com/cityjson" ></script>
<script type="text/javascript">
document.write("IP:"+returnCitySN.cip);
</script>
<br>
<script src="http://ip.ws.126.net/ipquery" ></script>
<script type="text/javascript">
document.write(":"+ localAddress.province+"<br>:"+localAddress.city);
</script>
used to get the visitor ip
then how to record the IP, province and city after the visitor visit as txt
and post the entire file code as much as possible, thank you!