
<?php
function Fput($filename,$string){
$fp=fopen($file,'a');
if(flock($fp),LOCK_EX){
fputs($fp,$string);
flock($fp,LOCK_UN);
}
fclose($fp);
}
function Fget($filename,$length){
$fp=fopen($filename,'r');
if(flock($fp,LOCK_SH)){
$res=fgets($filename,$length);
flock($fp,LOCK_UN);
}
fclose($fp);
return $res;
}
?>


