User
Pass
2FA
 
 

script verificare server cs

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> Trash -> Programming / Scripting / Database
Author Message3434
rZw

[Mentally Stable]



Status: Offline
(since 27-02-2011 12:22)
Joined: 04 Jan 2011
Posts: 7, Topics: 2
Location: Romania

Reputation: 55.2
Votes: 2

Post Posted: 08-01-2011, 12:46:07 | Translate post to: ... (Click for more languages)

as dorii si eu un script care arata daca serverul de cs este OFF sau ON , atat .
0 0
  
Back to top
View user's profile Send private message
hookro

[Mentally Stable]



Status: Offline
(since 28-08-2015 23:43)
Joined: 07 Jan 2011
Posts: 7, Topics: 1
Location: Romania

Reputation: 70
Votes: 6

 
Post Posted: 11-01-2011, 22:06:09 | Translate post to: ... (Click for more languages)

fsockopen.
Code:


<?php
$x = fsockopen("ip", 27015, $errno, $errstr, 30);
if (!$x)
   { echo "offline"; }
else { echo 'online'; }
?>

0 0
  
Back to top
View user's profile Send private message
rZw

[Mentally Stable]



Status: Offline
(since 27-02-2011 12:22)
Joined: 04 Jan 2011
Posts: 7, Topics: 2
Location: Romania

Reputation: 55.2
Votes: 2

Post Posted: 12-01-2011, 18:50:44 | Translate post to: ... (Click for more languages)

nu merge .. arata la toate serverele ca sunt offline
0 0
  
Back to top
View user's profile Send private message
Nexflame

[Newb Developer]



Status: Offline
(since 28-12-2022 15:28)
Joined: 19 Apr 2010
Posts: 1316, Topics: 24
Location: Cluj-Napoca

Reputation: 1407.1
Votes: 58

   
Post Posted: 12-01-2011, 21:08:58 | Translate post to: ... (Click for more languages)

Shocker wrote:
Code:
function checkServer($address, $port, $id, $timeout=5)
 {
   $fp=fsockopen("udp://$address", $port, $errno, $errstr, $timeout);
   stream_set_timeout($fp, $timeout);
   fwrite($fp, "\xFF\xFF\xFF\xFFTSource Engine Query".chr(0));
   $state=(!fread($fp, 5))?"off":"on";
   @fclose($fp);
   return $state;
 }
echo "Serverul war3.freakz.ro este: ".checkServer("war3.freakz.ro", 27015);

0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
rZw

[Mentally Stable]



Status: Offline
(since 27-02-2011 12:22)
Joined: 04 Jan 2011
Posts: 7, Topics: 2
Location: Romania

Reputation: 55.2
Votes: 2

Post Posted: 12-01-2011, 21:15:12 | Translate post to: ... (Click for more languages)

multumesc frumos!
0 0
  
Back to top
View user's profile Send private message
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> Trash -> Programming / Scripting / Database  


The time now is 19-07-2025, 19:37:12
Copyright info

Based on phpBB ro/com
B

 
 
 







I forgot my password