Posted by Ilkka Maatta on 02/08/07 07:25
PHP code .....
<?
//Open file.
$file=fopen("file.txt","r");
//read file so long when it isn't end.
while (!feof($file))
{
//read and print row + LF.
$rivi=fgets($file,1024);
print "$row<BR>";
}
//Close file.
fclose($file);
?>
.....is read file(ascii) and print it display.
How i can read and print only last row - don't all row?
Navigation:
[Reply to this message]
|