WizZy™ Posted April 26, 2009 Share Posted April 26, 2009 Sorry if its already posted.. I didn't find anything with SOCK so i post it here.. <?php $ip = "127.0.0.1"; // Here edit your IP for GameServer $ipl = "127.0.0.1"; // Here edit your IP for Login $portg = "7777"; // Port for GameServer $portl = "9014"; // Port for Login if (! $sock = @fsockopen($ip, $portg, $num, $error, 5)) //Begin sock echo '<B>Game : <FONT COLOR=red>Offline</b></FONT>'; else{ echo '<B>Game : <FONT COLOR=lime>Online</b></FONT>'; if (! $sock = @fsockopen($ipl, $portl, $num, $error, 5)) echo '<B>Login : <FONT COLOR=red>Offline</b></FONT>'; else{ echo '<B>Login : <FONT COLOR=lime>Online</b></FONT>'; fclose($sock); //Closing sock. } } ?> I descripted some things so you can find if errors.. Quote Link to comment Share on other sites More sharing options...
CensoreD Posted June 22, 2009 Share Posted June 22, 2009 nice Share....!!!! Quote Link to comment Share on other sites More sharing options...
DeAtHDrAgOnN Posted June 22, 2009 Share Posted June 22, 2009 Nice Share But i don't thing anyone need it... All search For Rdy things!! :D Quote Link to comment Share on other sites More sharing options...
HardstyleMxc Posted September 17, 2009 Share Posted September 17, 2009 Very usefull thx Quote Link to comment Share on other sites More sharing options...
Stealth Posted September 17, 2009 Share Posted September 17, 2009 This is very usefull for newbies although its socket. Not sock as the function says. Quote Link to comment Share on other sites More sharing options...
УVІL™ Posted September 17, 2009 Share Posted September 17, 2009 Sorry if its already posted.. I didn't find anything with SOCK so i post it here.. <?php $ip = "127.0.0.1"; // Here edit your IP for GameServer $ipl = "127.0.0.1"; // Here edit your IP for Login $portg = "7777"; // Port for GameServer $portl = "9014"; // Port for Login if (! $sock = @fsockopen($ip, $portg, $num, $error, 5)) //Begin sock echo '<B>Game : <FONT COLOR=red>Offline</b></FONT>'; else{ echo '<B>Game : <FONT COLOR=lime>Online</b></FONT>'; if (! $sock = @fsockopen($ipl, $portl, $num, $error, 5)) echo '<B>Login : <FONT COLOR=red>Offline</b></FONT>'; else{ echo '<B>Login : <FONT COLOR=lime>Online</b></FONT>'; fclose($sock); //Closing sock. } } ?> I descripted some things so you can find if errors.. can you explain us what is sock? xD lol Quote Link to comment Share on other sites More sharing options...
Alexi Posted September 18, 2009 Share Posted September 18, 2009 yo REPORTED for spam On-Topic ti douleia kanei auto file??? Quote Link to comment Share on other sites More sharing options...
KnightOnline Posted September 18, 2009 Share Posted September 18, 2009 Very usefull thx guys Quote Link to comment Share on other sites More sharing options...
УVІL™ Posted September 18, 2009 Share Posted September 18, 2009 On-Topic ti douleia kanei auto file??? Dude No Greek Allowed Here.Next time i will report it . PS:Sorry for the simple member make warnings ;D Quote Link to comment Share on other sites More sharing options...
Alexi Posted September 19, 2009 Share Posted September 19, 2009 Dude No Greek Allowed Here.Next time i will report it . PS:Sorry for the simple member make warnings ;D Off-Topic : So thas MxC??? A friend reports a friend,well i thought that i was on Greek section cuz i spend the most time there and what do you mean simple member ???as i see you are a simple member too but with more posts so qq... On-Topic: Can anyone say what is SOCK?? Quote Link to comment Share on other sites More sharing options...
maxicroma Posted September 19, 2009 Share Posted September 19, 2009 thx for share :) Quote Link to comment Share on other sites More sharing options...
Hax0r Posted September 19, 2009 Share Posted September 19, 2009 On-Topic: Can anyone say what is SOCK?? A function of PHP(not only). @Leeroy this has been shared already but I can't find it with search so leave this unlocked. 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.
Note: Your post will require moderator approval before it will be visible.