Post Pacific

Post Pacific (https://postpacific.loc-online.com/index.php)
-   Темы без сохранившегося раздела (https://postpacific.loc-online.com/forumdisplay.php?f=10001)
-   -   //who packet? (https://postpacific.loc-online.com/showthread.php?t=5140)

Belazor 14.07.2006 12:24

//who packet?
 
Like it says on the tin, u to mi giv pless //who packet info, or a way for me to find this out myself?
I r nub when it comes to this sort of thing see, u to mi hylp pless?

Wanna create an accurate user online script for web, thats why.
So I need to send that packet through PHP, and I need to know what to send.
mi hylp?

k? thx? bai. :)

drzoom 14.07.2006 12:27

Сам то понял что написал?

KTPSMF 14.07.2006 12:29

i can help if i understand your language :D

Belazor 14.07.2006 12:37

XD
I want to create a PHP script that fetches accurate user online information, and I need to send a packet to CacheD it seems to fetch this info.
I need to know if there's any way I can fetch this myself, or if anyone knows what to send in order to fetch the appropriate info.

thx4urhylp mens ;)

ateh 14.07.2006 12:49

$query="SELECT TOP 2 * FROM [dbo].[user_count] WHERE server_id < 2 ORDER BY record_time DESC";
$conn=mssql_connect($ip,$user,$pass);
mssql_select_db($db, $conn);
$result = mssql_query($query);
for($t=0; $t<2; $t++) {
$world = mssql_result($result, $t, 1);
$status = mssql_result($result, $t, 2);
$tb[$world] = $status;
}
mssql_free_result($result);
$conn = mssql_close();

echo "Worls 1: ".$tb[1]."
\n";


It's refreshed every 5 minutes or something like this.

Belazor 14.07.2006 12:55

Yeah I looked into that table, but I want the stats to be able to be updated in realtime.
I guess Ill use the user_count table until I can get my hands on that packet info. Thanks :)


All times are GMT. The time now is 15:58.