Hey.
Ik heb een probleem, ik weet gewoon even niet meer hoe dit zit:
Ik heb nu dit:
Dan komt er dit te staan:
Quote:
B{"packets":[{"command":"playerStatus","responseCommand":"false"}]}
Alleen hoe kan ik dus nou de variable van responseCommand pakken?
Daar hoef ik tog niet met explode enz te gaan klooien? Dat was tog iets met:
alleen dan komt de volgende error:
Quote:
Fatal error: Cannot use string offset as an array in /home/snabbonl/domains/nlminecraft.nl/public_html/allesgoed.php on line 23
line 23 is de echo.
Hoe kan ik dit oplossen?
Bedankt!
Wouter.
Ik heb een probleem, ik weet gewoon even niet meer hoe dit zit:
Ik heb nu dit:
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/print_r"]print_r[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/socket_read"]socket_read[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sock[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]1024[/COLOR][COLOR= #007700]));[/COLOR]
?> Dan komt er dit te staan:
Quote:
B{"packets":[{"command":"playerStatus","responseCommand":"false"}]}
Alleen hoe kan ik dus nou de variable van responseCommand pakken?
Daar hoef ik tog niet met explode enz te gaan klooien? Dat was tog iets met:
[COLOR= #0000BB]<?php
$array[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/socket_read"]socket_read[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sock[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]1024[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$array[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"packets"[/COLOR][COLOR= #007700]][[/COLOR][COLOR= #DD0000]"responseCommand"[/COLOR][COLOR= #007700]];[/COLOR]
?> alleen dan komt de volgende error:
Quote:
Fatal error: Cannot use string offset as an array in /home/snabbonl/domains/nlminecraft.nl/public_html/allesgoed.php on line 23
line 23 is de echo.
Hoe kan ik dit oplossen?
Bedankt!
Wouter.

