
16.07.2002, 02:44
|
|
Регистрация: Aug 2001
Адрес: Barcelona
Сообщений: 1,277
|
<?
/* - Revision 1.0 - */
if (!is_readable("test.txt")) $line = 1;
else {
$fh = fopen("test.txt","r");
$line = fgets($fh, 1024);
$line = (intval($line) + 1);
fclose($fh);
}
echo $line;
$fh = fopen("test.txt","w");
fwrite($fh, $line);
fclose($fh);
?>
|