runcate ($fp, 0); if (fwrite ($fp, $str) === FALSE) return FALSE; fflush ($fp); flock ($fp, LOCK_UN); fclose($fp); return TRUE; } ?>