[Help] Status Server Problem

Results 1 to 2 of 2
  1. #1
    Apprentice DeDMoNeY is offline
    MemberRank
    Mar 2006 Join Date
    NUNCA!!!Location
    8Posts

    [Help] Status Server Problem

    Ey... not if it is the suitable place, but... I have a problem with status server. I have a web NukeET (Mod PHP-Nuke) and I create the server.php of before. I go to create block, put :

    PHP Code:
    <? include("server.php"); ?>
    and in the block is invisible o_O.

    I put
    PHP Code:
    <? echo "Login:".$config['login_server']." Server1:".$config['game_server']." Server2:".$config['game_server1']." ";?>

    and =

    ---------------------------------

    I go to mainfile.php and put, like in the guide of rwaver:

    PHP Code:
    <? include("server.php"); ?> // put the directory on you put the file or the link to
    // it, example include("http://tes.com/users/l2mama/server.php")
    and go to block and put
    PHP Code:
    <? echo "Login:".$config['login_server']." Server1:".$config['game_server']." Server2:".$config['game_server1']." ";?>
    and nothing. is invisible. somebody can help me? thx. and sorry for my english, i'm spanish.


  2. #2
    Apprentice Kartrom is offline
    MemberRank
    Jan 2006 Join Date
    RussiaLocation
    7Posts
    PHP Code:
    <?
     
    //////////////////////////////////////
     // Statistik Script by I-Web Design //
     // -------------------------------- //
     // Contact: webmaster@michieru.de   //
     // Homepage: www.michieru.de        //
     //                                  //
     // Using:                           //
     // You can use the Script for free  //
     // and edit it in all places. Only  //
     // keep this head-copyright on each //
     // site of this script.             //
     // See info.txt for more details!!! //
     //////////////////////////////////////


     

    $config['server_ip']="you ip";//IP adress from the Server. $_SERVER["HTTP_HOST"] = IP from HTTP-server
                                          //example:
                                          //HTTP-Server IP = $config['server_ip']=$_SERVER["HTTP_HOST"];
                                          //External IP    = $config['server_ip']="127.0.0.1";

     
    error_reporting(0);
     
    $IP = array(
      
    "login_server" => $config['server_ip'].":2106",
      
    "game_server" => $config['server_ip'].":7777",
     );
     while(list(
    $ServerName,$Host)=each($IP))
     {
      list(
    $IPAddress,$Port)=explode(":",$Host);
      if(
    $fp=fsockopen($IPAddress,$Port,$ERROR_NO,$ERROR_STR,(float)0.5))
      {
       
    $config[$ServerName]="<font color=\"#00ff00\">Online</font>";
       
    fclose($fp);
      }else{
       
    $config[$ServerName]="<font color=\"#ff0000\">Offline</font>";
      }
     }

     
    mysql_close($verbindung);
    echo 
    " Login:".$config['login_server']." Server:".$config['game_server']."";
    ?>
    im use this



Advertisement