Hi there. 
I need a simple PHP script that checks if server is online.
Can you help me?
Thanks in advance,
microbyte

I need a simple PHP script that checks if server is online.
Can you help me?
Thanks in advance,
microbyte
Need PHP Script - Check if server is online
|
Hi there.
![]() I need a simple PHP script that checks if server is online. Can you help me? Thanks in advance, microbyte
06-06-2007, 11:37 PM
Google returns many results for exactly this..
You could check out LGSL standalone over at http://greycube.com
06-07-2007, 03:10 AM
You could easily modify my query script that I posted in the tutorial section.
randomresources.org | xfire: toasty2
06-07-2007, 07:48 AM
HI.
[Toast] I cant modify your script. It gives me some errors in PHP5. Muppet, is CS:Source covered by this LGSL? I've already done many searches with no success, so I need your help. Thanks, microbyte
06-07-2007, 08:36 AM
LGSL is a nice way to look at any server status. It includes player lists, time connected, scores as well as server settings.
You can add multiple servers to the list and look over all of them at once. Here is an example that has been wrapped into a page: http://www.fastfrags.co.uk/index.php?page=lgsl/index.php
Thanks, but I need something simple.
I already have a script to query the server, but now I need a simple one that check if server is online or not, because some servers are home-made and aren't always online. PHP Code: if($isonline){ All i need is a simple class to check if server is online. the fsockopen() function doesn't work, because it tries to connect to a computer by a port. If computer is ON, that port is open, but no server is running, it will return ONLINE. Thanks, microbyte
06-08-2007, 05:55 AM
Let me see if I can cook something up, source queries aren't my thing though...
randomresources.org | xfire: toasty2
06-08-2007, 04:47 PM
Go here for additional info:
http://developer.valvesoftware.com/wiki/Server_Queries As you can see if you get a reply from the server, it means it's online right so why not make a function that if the server replies then it's online ![]()
Join the Source Dedicated Server Support Group on Steam Community!
Source Dedicated Server (SRCDS) Free to join, Live support! (When available) http://forums.srcds.com/viewtopic/5114 |
« Next Oldest | Next Newest »
|