marcis Posted March 13, 2011 Report Share Posted March 13, 2011 Jā un ko tu gaidīji? Komunikācija ar ārēju resursu nekad nebūs tik ātra kā lokāli. Tāpēc informācija jākešo. Quote Link to comment Share on other sites More sharing options...
sandis_m Posted March 13, 2011 Author Report Share Posted March 13, 2011 (edited) Un kā ko izdarīt, lai nelādētos nezcik ilgi? Kā kešot? Piemēram, kaut vai šim te: <?php $ip = "zm.heal.lv"; $ports = "27015"; $socket = fsockopen("udp://".$ip, $ports); $cmd = "\xFF\xFF\xFF\xFF\x54Source Engine Query\x00"; $lenght = strlen($cmd); fwrite($socket, $cmd, $lenght); $response = fread($socket, 1); if (empty($response)) { echo "<center>$ip:$ports: <b>-</b></center>\n"; } else { echo "<center>$ip:$ports: <b>+</b></center>\n"; } ?> Edited March 13, 2011 by who_i_am Quote Link to comment Share on other sites More sharing options...
m8t Posted March 13, 2011 Report Share Posted March 13, 2011 (edited) Izveido temporaly failu uz lokālā servera un pieliec klāt tādu fīču kā šī faila update reizi X stundās/minūtēs. Tad arī vienmēr visu informāciju par serveri lasi no lokālā faila. Edited March 13, 2011 by m8t Quote Link to comment Share on other sites More sharing options...
Kemito Posted March 13, 2011 Report Share Posted March 13, 2011 Nesprēgā pervak, neaizmirsti kur tu dzīvo! Tajā linkā kur iedevu ir lapas, kuros ir šāda tipa monitors! Quote Link to comment Share on other sites More sharing options...
sandis_m Posted March 13, 2011 Author Report Share Posted March 13, 2011 Nesprēgā pervak, neaizmirsti kur tu dzīvo! Tajā linkā kur iedevu ir lapas, kuros ir šāda tipa monitors! da man slinkums kaut ko meklēt, godīgi sakot! Quote Link to comment Share on other sites More sharing options...
wintermute Posted March 13, 2011 Report Share Posted March 13, 2011 Nu tātad tev to CS monitoru patiesībā nemaz nevajag - imho, varam slēgt ciet. Quote Link to comment Share on other sites More sharing options...
Kemito Posted March 13, 2011 Report Share Posted March 13, 2011 @who_i_am es saku būtu palūdzis, takš mož iedod. Tai hopa adresītē viņi ir dahrena pats kačājot visādas sourcītes dīrājot esmu uzgājis. Ja tiešām vaig ieskau noveltīt to laiku :D Quote Link to comment Share on other sites More sharing options...
sandis_m Posted March 13, 2011 Author Report Share Posted March 13, 2011 Kk.. apskatīšos. bet vēl ir cerība kaut kā dabūt http://www.cspro.lv/ishop/6 (kgan nav ne jausmas kaa tos punktus var papildināt) Quote Link to comment Share on other sites More sharing options...
ezis Posted March 13, 2011 Report Share Posted March 13, 2011 stream_set_timeout, tikai neieliec par maz. Nespēs noķer Tev visus datus! ^^ Quote Link to comment Share on other sites More sharing options...
mad182 Posted March 14, 2011 Report Share Posted March 14, 2011 http://exs.lv/view/CS_servera_monitors/ Lūdzu! 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.