Re: Chat
Doesnt PHP have some IRC functions?
I dont have the manual with me (at school ), but I think that might be possible
Edit: Thank god for php.net
<?php
// connect to server
$id = ircg_pconnect($nickname, $ip, $port);
// set to output to a file
ircg_set_file($id, 'irc_output.html');
// try to join a channel
if (!ircg_join($id, $channel)) {
echo "Cannot /join $channel<br />";
}
// send list command
ircg_list($id, $channel);
// wait for output to arrive
sleep(5);
// disconnect
ircg_disconnect($id,'Bye World');
// output everything
readfile('irc_output.html');
?>
Returns something like this in irc_output.html
...
Channel #channel has n users and the topic is 'Topic'
End of LIST
...
This would work, if you use it right. Otherwise you have to wait 5 seconds for every page load...
$theQuestion = (2*b) || !(2*b);