Re: Status Indicator

"Dean Earley" <[email protected]>
Newsgroups gmane.network.irc.blitzed.web
Message-ID <4353.217.204.224.130.1073814580.squirrel@webmailnew.earlsoft.co.uk>
> This code doesn't work:
>
> <?php $online =
> file("http://www.blitzed.org/online.phtml?nick=aeonix");
>  if ($online[0]) echo "I am online";
>  elseif ($online[2]) echo "I am away";
>  else echo "I am offline";
> ?>
>
> Can someone help me?

No it doesn't, you want this:

<?php $online =
file("http://www.blitzed.org/online.phtml?nick=aeonix");
 if ($online[0] == 1) echo "I am online";
 elseif ($online[0] == 2) echo "I am away";
 else echo "I am offline";
?>

-- 
Dean Earley AKA IZS ([email protected])

irc:    irc://irc.blitzed.org/
web:    http://personal.earlsoft.co.uk
Phone:  +44 (0)1489 789742
Mobile: +44 (0)780 8369596
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.