[ask]php online code

Web discussions, including project website, forums, wiki, and others.


Post Reply
d4n4r
Peon
Peon
Posts: 3
Joined: 15 Sep 2009, 16:54

[ask]php online code

Post by d4n4r »

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
Manasource
Manasource
Posts: 4209
Joined: 01 Nov 2007, 17:35
Location: Internet

Re: [ask]php online code

Post by Jaxad0127 »

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

Re: [ask]php online code

Post 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.

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

Totally untested but it should work.
Post Reply