Re: Channel Userlist
"Dean Earley" <[email protected]>
| Newsgroups | gmane.network.irc.blitzed.web |
|---|---|
| Message-ID | <[email protected]> |
> I tried this php-code, and yes, i've changed the second line but it
> doesn't work...
>
> Warning: Wrong parameter count for fgets() in
> /home/httpd/vhosts/chatsquare.nl/httpdocs/index2.php3 on line 105
>
> That's the error that i get...
The sample was written using PHP 4.2 and wont work on 4.1 or below.
You need to specify a length parameter which doesn't work using this model.
I've used the code below which works below without a problem.
$users =
file("http://blitzed.org/scripts/chanuserlist/?channel=%23channel&pass=channelpass");
echo "<p>The people currently in the channel:<p>\n";
echo "<ul>\n";
for ($userid = 0; $userid < count($users) - 1; $userid++) {
$nickname = $users[$userid];
echo "<li>" . trim($nickname) . "</li>\n";
}
echo "</ul>";
I'll see if I can update that page to use this code.
--
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