Page 1 of 1

[ask]php online code

Posted: 21 Sep 2009, 14:57
by d4n4r
sorry, can i have the php syntax for the online player in TMW ??

in show Online (109 players) example

i will add that on my blog . . .

thanks . . . .
n sorry for my bad english . . :oops: :oops:

Re: [ask]php online code

Posted: 21 Sep 2009, 15:33
by Jaxad0127
No PHP code. The server outputs the file every X minutes.

Re: [ask]php online code

Posted: 14 Oct 2009, 21:54
by Ghezus
You could use this little snippet. It reads the value from the TMW-site and removes the HTML tags so you can make it fit your site.

$status = file_get_contents('');
echo strip_tags($status);

Totally untested but it should work.