Get Server Running Status from the files
When a chat server is running, some parameters are stored in text files which can be read by your application. Useful information can be extracted from them.
This feature is included in the standard version of 123 Flash Chat.
Get numbers
To obtain a current connection number, the logon user number and the room number from a record file, use the following format:
<123FC installed directory>/server/data/default/online.txt
This file will real-time change according to the chat room status.
Format:
< connection number >|<logon user number>|<room numbers>
Sample: 230|180|10
The example above shows that there are 230 connections on the chat server, 180 of them have logged in and there are 10 chat rooms altogether.
This data can be read and displayed in php, asp or other dynamic webpages.
Get username list of each room
You can display the user name list of each room on your webpage by retrieving data from "room_*.txt".
In the <123 installed directory>/server/data/default/, you can find the following files:
"room_1.txt ", "room_2.txt", etc.
These files store the online user lists of relevant rooms. These will keep changing depending on the changes of specific rooms.
updated at 2008-2-28 |