Well, first you need to connect to the server,
Then select the database for PhpBB,
Run a SQL Query on a table that holds all the users.
Pretty much a standard operation. Or did you know that PhpBB is open source so you can see how they did it.
Have a good one,
Chad