als online show : online

Gestart doorJacmob10 reacties28 weergaven

11 berichten · pagina 1 van 1

Jacmob

Lid · Topicstarter

Berichten
916
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Als iemand online is op een minecraft server hoe kan ik het dan zo krijgen dat op mijn site weergeeft dat die user online is?
0
Jacmob

Lid · Topicstarter

Berichten
916
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Dat gebruik ik al smile maar ik heb geen idee hoe ik dat per player doe ;c
0
Jacmob

Lid · Topicstarter

Berichten
916
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
K ik heb het geprobeert met die (bleek andere te zijn)

ik krijg deze error

Strict Standards: main() [function.main]: It is not safe to rely on the systems timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected America/Chicago for CST/-6.0/no DST instead in /home/stickycr/public_html/view.php on line 12

Notice: Use of undefined constant __DIR__ - assumed __DIR__ in /home/stickycr/public_html/view.php on line 12

Strict Standards: require() [function.require]: It is not safe to rely on the systems timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected America/Chicago for CST/-6.0/no DST instead in /home/stickycr/public_html/view.php on line 12

Warning: require(__DIR__/minecraft/MinecraftQuery.class.php) [function.require]: failed to open stream: No such file or directory in /home/stickycr/public_html/view.php on line 12

Strict Standards: require() [function.require]: It is not safe to rely on the systems timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected America/Chicago for CST/-6.0/no DST instead in /home/stickycr/public_html/view.php on line 12

Warning: require(__DIR__/minecraft/MinecraftQuery.class.php) [function.require]: failed to open stream: No such file or directory in /home/stickycr/public_html/view.php on line 12

Strict Standards: require() [function.require]: It is not safe to rely on the systems timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected America/Chicago for CST/-6.0/no DST instead in /home/stickycr/public_html/view.php on line 12

Fatal error: require() [function.require]: Failed opening required __DIR__/minecraft/MinecraftQuery.class.php (include_path=.:/usr/lib/php:/usr/local/lib/php) in /home/stickycr/public_html/view.php on line 12


De lijn zelf :

require __DIR__ . /minecraft/MinecraftQuery.class.php;
0
Berichten
5.795
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
http://pastebin.com/HvBiv51M

misschien heb je daar iets aan.
Het is 1 enkele functie en voor zover ik je bericht begrijp kan je hiermee gewoon uit de voeten.
0
Jacmob

Lid · Topicstarter

Berichten
916
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ik heb het gefixt via een andere soort require
maar krijg nu dit

Strict Standards: fwrite() [function.fwrite]: It is not safe to rely on the systems timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected America/Chicago for CST/-6.0/no DST instead in /home/stickycr/public_html/MinecraftQuery.class.php on line 165

Notice: fwrite() [function.fwrite]: send of 7 bytes failed with errno=1 Operation not permitted in /home/stickycr/public_html/MinecraftQuery.class.php on line 165


lijn 165:

if( $Length !== FWrite( $this->Socket, $Command, $Length ) )


Hele stuk:

private function WriteData( $Command, $Append = "" )
    {
        $Command = Pack( c*, 0xFE, 0xFD, $Command, 0x01, 0x02, 0x03, 0x04 ) . $Append;
        $Length  = StrLen( $Command );
        
        if( $Length !== FWrite( $this->Socket, $Command, $Length ) )
        {
            throw new MinecraftQueryException( "Failed to write on socket." );
        }
        
        $Data = FRead( $this->Socket, 2048 );
        
        if( $Data === false )
        {
            throw new MinecraftQueryException( "Failed to read from socket." );
        }
        
        if( StrLen( $Data ) < 5 || $Data[ 0 ] != $Command[ 2 ] )
        {
            return false;
        }
        
        return SubStr( $Data, 5 );
    }
}
0
Berichten
10.421
Reputatie
4
Punten
0,00
Lid sinds
Laatst gezien
Regel 1: Maak je timezone bekend met ini_set() of de php.ini.
Regel 3: Sockets naar buiten zijn mogelijk geblokkeerd.
0
Jacmob

Lid · Topicstarter

Berichten
916
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Mijn php is niet heel goed smile dus dat gaat mij niet lukken
0
Berichten
10.421
Reputatie
4
Punten
0,00
Lid sinds
Laatst gezien
Of je kan je erin verdiepen? Beiden kon ik zo Googlen + de oplossing.
0
Jacmob

Lid · Topicstarter

Berichten
916
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Nou ik hoop dat iemand hier gewoon kan helpen :/
0
Berichten
10.421
Reputatie
4
Punten
0,00
Lid sinds
Laatst gezien
Wut, ik help je toch?

Eerste probleem heb ik je al verteld... ini_set()
Tweede: sockets zijn niet toegestaan. ticket naar beheerder.
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren