Forum

Results 1 to 10 of 10
  1. #1
    Join Date
    December 2009
    Location
    Germany
    Posts
    55

    [SEARCHING] Request Server Status over PHP

    Hello,

    At TS2 I could get the Playerlist with this script:

    PHP Code:
    $connection fsockopen ("85.25.145.29""51234", &$errno, &$errstr1);
    $cmd "pl 8767\nquit\n";
    $error fputs($connection,$cmdstrlen($cmd));
    while(
    $channeldata fgets($connection4096)){
            echo 
    $channeldata;

    But dont work with TS3 :-(

  2. #2
    Join Date
    December 2009
    Location
    Germany / NRW
    Posts
    74
    Hey,

    i actually writing a ts3 admin lib for PHP.

    You can use my TS3-Viewer Alpha-release

    http://par0noid.india481.server4you....er/ts3.php?ip=YOUR-IP

    You have to replace YOUR-IP with your Teamspeak IP, 127.0.0.1 or something like that.

    The viewer selects server_id1 by default and queryport 10011.

    I'll improve the functions of my script but not at this night, tomorrow

    -Par0noid

  3. #3
    Join Date
    December 2009
    Location
    Germany
    Posts
    55
    Found it, working over telnet port with the serverquery commands.

  4. #4
    Join Date
    December 2006
    Location
    Denmark
    Posts
    25
    Quote Originally Posted by par0noid View Post
    Hey,

    i actually writing a ts3 admin lib for PHP.

    You can use my TS3-Viewer Alpha-release

    http://par0noid.india481.server4you....er/ts3.php?ip=YOUR-IP

    You have to replace YOUR-IP with your Teamspeak IP, 127.0.0.1 or something like that.

    The viewer selects server_id1 by default and queryport 10011.

    I'll improve the functions of my script but not at this night, tomorrow

    -Par0noid
    Nice do you release the script?

  5. #5
    Join Date
    December 2009
    Location
    Germany / NRW
    Posts
    74
    the hole libary if it's done

  6. #6
    Join Date
    December 2009
    Location
    lalitoland
    Posts
    8
    Can you post the php code now please, that way we can see how you manage to collect the server informations.

    Thx

  7. #7
    Join Date
    December 2009
    Location
    Belgium
    Posts
    7
    Basic example, (not one with list just how you can get the info)
    PHP Code:
    <?php
    $fp 
    fsockopen("serverip"10011$errno$errstr3);
    if (!
    $fp) {
        echo 
    "$errstr ($errno)<br />\n";
    } else {
        
    fputs($fp"use 1\r\n"); // virtual server id 1 default
        
    fputs($fp"channellist\r\n"); // gives you channel list
        
    fputs($fp"clientlist -away -voice -groups\r\n"); //gives you clients conected
        
    fputs($fp"quit\r\n");// dont forget this else conection keeps open
        
    while (!feof($fp)) {
                
    $buffer .= fgets($fp4096);
        }
        
    fclose($fp);
        
    print_r($buffer);
    }
    ?>

  8. #8
    Join Date
    December 2009
    Location
    lalitoland
    Posts
    8
    Thx a lot, that's nice of you

  9. #9
    Join Date
    March 2007
    Location
    Netherlands
    Posts
    6
    Thank you! but the result = Success (0)

  10. #10
    Join Date
    December 2009
    Location
    USA
    Posts
    17
    It not the entire library but just an example of how it will work.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. I need help searching for a License
    By alex10455 in forum Server Support
    Replies: 1
    Last Post: August 13th, 2013, 11:34 PM
  2. [Searching] I search a TSł Instance status viewer
    By brandl in forum Tools / Web Based
    Replies: 14
    Last Post: August 9th, 2010, 07:37 PM
  3. [Searching] simple on/off Status
    By Siggi in forum Tools / Web Based
    Replies: 2
    Last Post: December 24th, 2009, 01:13 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •