RE: [PHP-GTK] gtk::input_add()
| From: | xxoes | Date: | Tue, 14 Feb 2006 14:33:06 +0000 |
| Subject: | RE: [PHP-GTK] gtk::input_add() | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-6733@lists.php.net to get a copy of this message | ||
Thanks to scottmattocks.
Here an little example:
<?PHP
function sock_read_cb($fp,$io_type) {
echo fread($fp,1024);
return(true);
}
$fp = fsockopen("irc.freenode.net",6667);
gtk::io_add_watch($fp,Gtk::IO_IN,"sock_read_cb");
gtk::main();
?>
mfg xxoes