[ask]php online code

Web discussions, including project website, forums, wiki, and others.
Post Reply
d4n4r
Peon
Peon
Posts: 3
Joined: 15 Sep 2009, 17:54

[ask]php online code

Post by d4n4r » 21 Sep 2009, 14:57

sorry, can i have the php syntax for the online player in TMW ??

in themanaworld.org show Online (109 players) example

i will add that on my blog . . .


thanks . . . .
n sorry for my bad english . . :oops: :oops:
Just Indonesian[/color People .
User avatar
Jaxad0127
TMW Adviser
TMW Adviser
Posts: 4209
Joined: 01 Nov 2007, 18:35
Location: Internet

Re: [ask]php online code

Post by Jaxad0127 » 21 Sep 2009, 15:33

No PHP code. The server outputs the file every X minutes.
Image
Ghezus
Peon
Peon
Posts: 2
Joined: 14 Oct 2009, 20:17

Re: [ask]php online code

Post by Ghezus » 14 Oct 2009, 21:54

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.

<?php
$status = file_get_contents('http://server.themanaworld.org/status.php');
echo strip_tags($status);
?>

Totally untested but it should work.
Post Reply