Results 1 to 9 of 9

Thread: [RESOLVED] php highscore

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2007
    Posts
    69

    Resolved [RESOLVED] php highscore

    Hi, can sombody help me to make a highscore list, reading from a flat file
    and display in a table, $PlayerName / $Reputation

    textfile looks like this.
    mandy|404
    jack|40
    jim|43


    just some random codes i found which may help you, i havent a clue about php but it may help to open the file, and the other to split the data to display in the table

    $fp = fopen('highscores.txt','r');
    if (!$fp) {echo 'ERROR: Unable to open file.</table></body></html>'; exit;}

    list ($PlayerName, $Reputation) = split ('|', $line);
    Last edited by troubleshoot; Jul 12th, 2007 at 04:02 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width