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

Posty w temacie


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: 3.10.2025 - 15:05