Jump to content

yoob

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Posts posted by yoob

  1. 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?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.