Hi, im having a little problem. I'm new to php and the pubstat system, so my code probably needs a little touch up.
Ok, when I upload my page to my server, it won't show if i'm offline/online etc. However, on my WAMP server, it all works fine and displays the way i want it to.
<?php
php
echo "<p>Niall's Online Status:</p>";
if( $str=file_get_contents( 'http://www.lfsworld.net/pubstat/get_stat2.php?version=1.4&idk=<ident-key>&action=pst&racer=niall09'))
if($str[66] == "0")
echo "<p><span class='off'>Offline</span></p>";
if($str[66] == "1")
echo "<p><span class='spec'>Spectating</span></p>";
if($str[66] == "2")
echo "<p><span class='pit'>in the pits</span></p>";
if($str[66] == "3")
echo "<p><span class='race'>Racing</span></p>";
?>
Any help would be appreciated
