Hmm, another problem. See, i have this small piece of line reverse code, making the bottom lines of the file show up at the top. I've put it together myself so it may not be perfect: [code]<? $file=fopen("news/news.txt", "r"); flock($file,1); $plik= array(); while (!feof($file)){ $plik[] = fgets($file,5000); } flock($file,3); fclose($file); for ($i=count($plik); $i>= 0; $i--){ echo $plik[$i]; } ?>[/code] I try to merge it with the code you guys provided, but i dont think im skilled enough to understand all this. Could you help me out?