Kikisss Posted December 24, 2009 Report Share Posted December 24, 2009 (edited) Kaa izdariit taa lai skripts neizvada IP bet gan piem servera nosaukumu? (atvainojiet nav LV shrifta) $ip = "91.90.xxx.xxx"; $port = "80"; if (! $sock = @fsockopen($ip, $port, $num, $error, 5)) echo '<B><FONT COLOR=red>Offline</b></FONT>'; else{ echo '<B><FONT COLOR=lime>Online</b></FONT>'; fclose($sock); } Edited December 24, 2009 by Kikisss Quote Link to comment Share on other sites More sharing options...
Kikisss Posted December 24, 2009 Author Report Share Posted December 24, 2009 (edited) skripts izvada pareizi tikai pielaidu kljuudu saakumaa jo taisu to kaa php fusion paneli. ja kaadam vajag to tad luudzu - openside("Server_status"); echo "(servera nosaukums) server is "; $ip = "IP adrese"; $port = "Ports"; if (! $sock = @fsockopen($ip, $port, $num, $error, 5)) echo '<B><FONT COLOR=red>Offline</b></FONT>'; else{ echo '<B><FONT COLOR=lime>Online</b></FONT>'; fclose($sock); } ; closeside(); Edited December 24, 2009 by Kikisss Quote Link to comment Share on other sites More sharing options...
anonīms Posted December 25, 2009 Report Share Posted December 25, 2009 izmanto serverquery. http://developer.valvesoftware.com/wiki/Server_Queries Quote Link to comment Share on other sites More sharing options...
goma smile Posted December 26, 2009 Report Share Posted December 26, 2009 Server_Queries Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.