Check this thread: http://www.hawkee.com/phpBB2/viewtopic.php?t=12813 . The script requested is similar to what you wrote here, the difference is you\'re is for the client only. It\'s all written in hash tables so it would be faster than trying to access the text file every time. Hope it would help you out. :)