Jump to content

Delarge

New Members
  • Posts

    1
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Delarge's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Ok so I'm helping someone edit a page to show a server checker for a game. As of now I have the code working, but I just need to insert it into the actual page. The person I'm helping is using a portal mod for phpBB. Here is the working code that I have: <?php $fp = fsockopen("68.107.249.246", 10622, $errno, $errstr, 3); if (!$fp) { echo "Server is DOWN"; } else { echo "Server is UP"; fclose($fp); } ?> and here is the entirety of the page: <dt>Games</dt>{$C_BLOCK_H_R}<br/> <div class="inner"> <span class="corners-top"><span></span></span> <div class="panel bg1"> <div class="inner"><span class="corners-top"><span></span></span> <table border="0" cellpadding="4" cellspacing="1" width="100%" class="forumline"> <tr> <tr> <div align=center> <tr> <td style="width: 10px;" align=center><img src="images/magestorm_icon.jpg"/><br/>Magestorm</td> <td style="width: 250px;"> <br/> <?php $fp = fsockopen("68.107.249.246", 10622, $errno, $errstr, 3); if (!$fp) { echo "Server is DOWN"; } else { echo "Server is UP"; fclose($fp); } ?> Magestorm was a game created in 1995 by Mythic Entertainment, which was acquired by Electronic Arts in 2006. <br/><br/> Now that the game is not officially available, we have been working hard to bring it back. <br/><br/> (This page will go into more detail soon.) </td> <td style="width: 10px;" class="thTop" align=center nowrap="nowrap"><i>Download Coming Soon</i></td> </tr> </div> </tr> </div> </tr> </table> </div> <span class="corners-bottom"><span></span></span> </div> </div> {$C_BLOCK_F_R} edit: I guess I should've mentioned that the PHP doesn't show up at all, just the <br/> but not "Server is UP/DOWN" message.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.