Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Połączenie z serwerem TS3
teez
post
Post #1





Grupa: Zarejestrowani
Postów: 186
Pomógł: 6
Dołączył: 20.12.2010

Ostrzeżenie: (0%)
-----


Witam,

  1. <?php
  2. require("TeamSpeak3.php");
  3. // connect to local server, authenticate and spawn an object for the virtual server on port 9987
  4. $ts3_VirtualServer = TeamSpeak3::factory("serverquery://username:password@127.0.0.1:10011/?server_port=9987");
  5. // build and display HTML treeview using custom image paths
  6. $ts3_VirtualServer->getViewer(new TeamSpeak3_Viewer_Html("images/viewericons/", "images/countryflags/"));
  7.  


Mam kilka pytań dot w/w kodu.

Skąd mogę wziąć username / password?
Co gdy nie ma hasła na serwer?
server_port to Query port?

(IMG:http://www.iv.pl/images/60281207847402159907.png)
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 2)
mavex1
post
Post #2





Grupa: Zarejestrowani
Postów: 1
Pomógł: 0
Dołączył: 15.04.2013

Ostrzeżenie: (0%)
-----


Musisz się skontaktować z supportem o login i hasło ale i tak na 99,9% ich nie dostaniesz. IP, port querty i voice masz podany.

  1. <?php
  2. require("TeamSpeak3.php");
  3. // connect to local server, authenticate and spawn an object for the virtual server on port 9987
  4. $ts3_VirtualServer = TeamSpeak3::factory("serverquery://username:password@178.217.186.86:21002/?server_port=9813");
  5. // build and display HTML treeview using custom image paths
  6. $ts3_VirtualServer->getViewer(new TeamSpeak3_Viewer_Html("images/viewericons/", "images/countryflags/"));


Polecam kupić voice vps, wtedy masz pełny dostęp do serwera (passy do serveradmin).


Go to the top of the page
+Quote Post
teez
post
Post #3





Grupa: Zarejestrowani
Postów: 186
Pomógł: 6
Dołączył: 20.12.2010

Ostrzeżenie: (0%)
-----


Dzięki za odpowiedź!

Ehh.. To odpada, potrzebuję to do aplikacji, którą każdy będzie mógł używać - straci sens gdy będą musieli do suportu pisać o to. (IMG:style_emoticons/default/tongue.gif)
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 4.10.2025 - 08:11