写操作: //WRITE $fp = fopen("test.txt", 'ab'); //From the end flock($fp, LOCK_EX); //lock the file for waiting... fwrite($fp, 'Just A Test String.......'... Read More
posted @ 2010-10-03 15:12 无墨来点睛 Views(799) Comments(1) Diggs(0) Edit
如何用 PHP 来获取客户端 IP 和 服务器(主机)的 IP 呢? 来看看代码: echo "(1)浏览当前页面的用户的 IP 地址为:"; echo $_SERVER['REMOTE_ADDR']; echo ""; echo "(2)浏览当前页面的用户的 IP 地址为:"; echo gete... Read More
posted @ 2010-10-03 12:22 无墨来点睛 Views(7727) Comments(0) Diggs(0) Edit