...

View Full Version : Port status!



Nenad91
03-15-2008, 11:36 PM
I have server for CS 1.6, and I need information about current status (IP) of my server (on/off) for users that visit my site.

Inigoesdr
03-16-2008, 01:05 AM
Psychostats (http://www.psychostats.com/) used to distribute a PHP script called Psychoquery that included a class that could be used to get current server information from a CS server. After a quick glance on the website, I don't see a download link, but there are people talking about it in their forums so maybe they package it with the main program.

Lee Stevens
03-16-2008, 10:05 AM
One i made:

http://php-corner.com/view.php?id=46

Mwnciau
03-16-2008, 06:57 PM
There's a lot of information on how to query servers on the valve developer site (http://developer.valvesoftware.com/wiki/Server_queries).

To ping a server:


$fp = fsockopen ( 'udp://78.143.19.206', 27075, $errno, $errstr, 2 );

fwrite ( $fp, "\xFF\xFF\xFF\xFF\x69" );

if ( fread ( $fp, 6) == "\xFF\xFF\xFF\xFF\x6A\x00")
{
// Server is up
}



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum