• Hey Guest, we're evolving the future of TeaSpeak.
    You're invited to join the discussion here!

php code error

BIOS

TeaSpeak Team
Staff member
TeaTeam
Premium User
i writing this time an new teaspeak hosting panel and my acctual code will not include in php 7.4.4

vvcap 2020-04-15-14-33-10.png

code:

PHP:
<?
    require_once("folder/folder.php");
    
    $tsAdmin = new ts3admin($tsip, $tsquery);
        if($tsAdmin->getElement('success', $tsAdmin->connect())) {
            $tsAdmin->login($tskullanici, $tssifre);
            $tsAdmin->selectServer($tsport);
    
     $svbilgi = $tsAdmin->serverInfo();
        foreach ($svbilgi as $key) {
            $tsid   = $key["virtualserver_id"];

        
        }
        }
    
      
        
        ?>
writing <?php first line get an blank page

vvcap 2020-04-15-14-36-09.png
 

WolverinDEV

TeaSpeak Team
Staff member
Administrator
Not 100% sure but the beginning tags are configurable within the PHP init.
In general <? is deprecated ;)
 

BIOS

TeaSpeak Team
Staff member
TeaTeam
Premium User
Not 100% sure but the beginning tags are configurable within the PHP init.
In general <? is deprecated ;)
in php 5.6 can use "<?" in 7.4.x needs to use "<?php"
same problems i have in channel management

vvcap 2020-04-15-14-46-22.png

---- Automatically Merged Double Post ----

okay solved.... need to allow "short_open_tag" in php config
 
Last edited: