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?
als online show : online
Dat gebruik ik al
maar ik heb geen idee hoe ik dat per player doe ;c
maar ik heb geen idee hoe ik dat per player doe ;cK ik heb het geprobeert met die (bleek andere te zijn)
ik krijg deze error
De lijn zelf :
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; 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.
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.
Ik heb het gefixt via een andere soort require
maar krijg nu dit
lijn 165:
Hele stuk:
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 );
}
} Regel 1: Maak je timezone bekend met ini_set() of de php.ini.
Regel 3: Sockets naar buiten zijn mogelijk geblokkeerd.
Regel 3: Sockets naar buiten zijn mogelijk geblokkeerd.
Mijn php is niet heel goed
dus dat gaat mij niet lukken
dus dat gaat mij niet lukkenOf je kan je erin verdiepen? Beiden kon ik zo Googlen + de oplossing.
Nou ik hoop dat iemand hier gewoon kan helpen :/
Wut, ik help je toch?
Eerste probleem heb ik je al verteld... ini_set()
Tweede: sockets zijn niet toegestaan. ticket naar beheerder.
Eerste probleem heb ik je al verteld... ini_set()
Tweede: sockets zijn niet toegestaan. ticket naar beheerder.