[ask]php online code

Web discussions, including project website, forums, wiki, and others.
Post Reply
Posts: 3
Joined: Tue Sep 15, 2009 5:54 pm

[ask]php online code

Post by d4n4r » Mon Sep 21, 2009 2:57 pm

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
TMW Adviser
TMW Adviser
Posts: 4209
Joined: Thu Nov 01, 2007 6:35 pm
Location: Internet

Re: [ask]php online code

Post by Jaxad0127 » Mon Sep 21, 2009 3:33 pm

No PHP code. The server outputs the file every X minutes.
Posts: 2
Joined: Wed Oct 14, 2009 8:17 pm

Re: [ask]php online code

Post by Ghezus » Wed Oct 14, 2009 9:54 pm

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('http://server.themanaworld.org/status.php');
echo strip_tags($status);

Totally untested but it should work.
Post Reply