PHP
·
发表于 5年以前
·
阅读量:8303
<?
function rw_counterfile()
{
$fp=fopen("counter.txt","r+");
if($fp==NULL) echo "Îļþ´¦Ài³o´i";
rewind($fp);//Ö¸ÕeÒƵ½ÎļþÍ
fseek($fp, 2);//Ö¸ÕeÏoºoÒÆ2
$point=ftell($fp);//
echo $point."
;";//
fputs($fp, xyxy, 2);//дÈe2¸o×Öu
rewind($fp);//
$num=fgets($fp,23);//¶Á³o×Ö*u´®
echo "get:".$num."
;";//
fclose($fp);
}
rw_counterfile();
?>;