Community Forums Today's Posts     Member List     Archive    
Page 2 of 2 FirstFirst 12
Results 16 to 20 of 20
  1. #16
    Join Date
    Sep 2012
    Posts
    13
    Posting the first google results is not helping i know how to google too.
    I wouldn't have posted this topic if i had no problems in donig this script.

  2. #17
    Join Date
    Oct 2003
    Location
    Germany
    Posts
    2,298
    Quote Originally Posted by SuperLOL View Post
    I don't know how you build a website but i don't upload 10 MB of php code on my website to use a 30 line php script.
    The relevant code of the framework (the "libraries" directory) is around 350 KB large when uncompressed. Also, you want to display the values of several server properties such as uptime, version and current clients... which means that you need to actually parse and unescape the output from the TS3 ServerQuery interface. I agree that a simple "Server is online/offline" script would not require any classes or frameworks, but what you want is kind of advanced scripting.

    Anyway... just my two cents.

  3. #18
    Join Date
    Sep 2012
    Posts
    13
    Do i need the whole TS3 PHP framework or can i just use 1 ot 2 libraries and and put them together and have one script?
    If i really need to use the whole TS3 PHP Framework for this small script then i will stick with a normal online/offline" script.
    Last edited by SuperLOL; 16-09-2012 at 01:44.

  4. #19
    Join Date
    Oct 2003
    Location
    Germany
    Posts
    2,298
    Quote Originally Posted by SuperLOL View Post
    Do i need the whole TS3 PHP framework or can i just use 1 ot 2 libraries and and put them together and have one script?
    If i really need to use the whole TS3 PHP Framework for this small script then i will stick with a normal online/offline" script.
    The framework has a use-at-will architecture which means that you can just delete unused files, but since you want a very tiny and simple solution, I'd consider using this class instead:

    http://addons.teamspeak.com/director...s-for-PHP.html

  5. #20
    Join Date
    Sep 2012
    Posts
    13
    I decided to go with the small offline/online script but i have a little problem. If i use this script on a TS3 server it shows the TS3 server always as offline any idea what the problem could be?

    Code:
    <?php
    if (!$socket = @fsockopen("serverIP", 9987, $errno, $errstr, 1))
    {
      echo 'Offline';
    }
    else 
    {
      echo 'Online';
      fclose($socket);
    }
    ?>
    EDIT:
    Ok found it out need to add "udp://serverIP" otherwise it uses tcp.
    Last edited by SuperLOL; 18-09-2012 at 00:53.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Can't get website server status script working
    By Piteras00 in forum Server Support
    Replies: 3
    Last Post: 26-08-2010, 18:35
  2. Status Script Gesucht !!!
    By freetsloon in forum [TeamSpeak 2] Server Support
    Replies: 3
    Last Post: 07-05-2009, 18:26
  3. New Status Script
    By justinkwaugh in forum [TeamSpeak 2] Addons & Scripts
    Replies: 2
    Last Post: 19-08-2005, 20:32
  4. Server Status HTML Script
    By nmysytes in forum [TeamSpeak 2] Addons & Scripts
    Replies: 3
    Last Post: 04-06-2004, 18:00

Posting Permissions

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