probably asked alot

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
AliJay
Forum Newbie
Posts: 14
Joined: Mon Nov 24, 2003 11:42 am

probably asked alot

Post by AliJay »

How could i check whether my C-S server is online from a different ip
microthick
Forum Regular
Posts: 543
Joined: Wed Sep 24, 2003 2:15 pm
Location: Vancouver, BC

Re: probably asked alot

Post by microthick »

AliJay wrote:How could i check whether my C-S server is online from a different ip
If you mean Counter-Strike, you can use this class:
http://www.zend.com/codex.php?id=492&single=1

then use sample code available here:
http://www.gameserver.dk/
// **********************************************************************************************
// Class CounterStrike
// Author : Henrik Schack Jensen (henrik@schack.dk)
//
// Changelog:
// Version 1.01 03/11/2001 Removed ASP style tags
// Removed usort warning
// Fixed error on empty server
// Version 1.00 03/05/2001 Initial (& a bit messy ) release
//
// A utilityclass (PHP4 only) to do serverstatus-queries against Halflife/Counterstrike servers
//
// The following functions are available:
//
// Function getServerInfo(serveraddress,serverport)
// Get info about servername,serveraddress,mapname,currentplayers & maxplayers.
//
// Function getServerPlayers(serveraddress,serverport)
// Get info about players currently playing on the server.
// Players are sortet by frags.
//
// Function getServerRules(serveraddress,serverport)
// Get info about serverrules/settings.
//
// All results are returned in membervariables:
//
//
// Demosource is available at http://www.gameserver.dk/
// **********************************************************************************************
//
// Function used to sort players by frags
// Needs to be defined globally in order for usort to call it
//
AliJay
Forum Newbie
Posts: 14
Joined: Mon Nov 24, 2003 11:42 am

Post by AliJay »

thanks
Post Reply