
October 12th, 2003
04:18 PM
Neverside Newbie
Status: Offline!
remote irc
i have my java irc client connected to my room, is there anyway of havin a php script that joins the room counts users and their usernames saves to a text file and the exits, but can that be ran on the server as php? it would be a php file that is included on the main page..
thanks for any help
digital

October 12th, 2003
04:49 PM
Neverside Newbie
Status: Offline!
I'm pretty sure you'd have to make an extension or something. Though I don't know how, I recommend you just get an irc bot that does this.
___________________
Travis Farrell


October 12th, 2003
06:20 PM
Neverside Newbie
Status: Offline!
will a bot run in php remotely on a server?
thanks

October 12th, 2003
06:31 PM
Neverside Newbie
Status: Offline!
No, get a bot to run on irc, then save whatever you want to the server. Use PHP to do whatever you want to the text file. That's how TF does it.
___________________
Travis Farrell


October 12th, 2003
06:52 PM
with Mr. Jones
Status: Offline!
PHP IRC Bots can be done using sockets, but I'm not at liberty to share any code - both vexx and evilbot (evil genius wrote this, he can answer questions on this subject better then me) code isnt being released. Still, look up sockets + irc protocol and go for it.
___________________
http://www.philbrodeur.com - Expert PHP Development and Tutorials

October 13th, 2003
04:04 AM
there are alot of tut's around that hive you a basic idea on how to do it. I made one a while ago never finished it tho, connected to a channel got the text and added it to a db.
if your host has irc functions enabled it shouldn't be to hard to do.
Would show u my code but i don't think it would be of any help since i wrote it when i started php, very crappy 

October 13th, 2003
01:36 PM
with Mr. Jones
Status: Offline!
irc functions? As far as I know, there are no "IRC" functions... you gotta use sockets.
whatdyaknow, I'm wrong. However, the extension gateway isnt real universal - its far from a commonly installed extension and it doesnt work on all servers. You're better off using sockets, it'll work on more servers and they're funner.
http://us4.php.net/manual/en/ref.ircg.php
___________________
http://www.philbrodeur.com - Expert PHP Development and Tutorials
Last edited by Phil, October 13th, 2003 01:38 PM (Edited 1 times)

October 14th, 2003
01:24 PM
Neversidian
Status: Offline!
Ares, Vexx is in TCL, not PHP. and EvilBot was renamed NuBot (since it will be released on nuphp.com) and now support modules (wee).
Dont ask me for the source of it, i wont give it.
Just search google for "irc protocol", and use sockets (either real sockets or fsock) to "talk" with the server.
___________________
Jeremie - Used to be the Director of Community Development

October 14th, 2003
09:40 PM
with Mr. Jones
Status: Offline!
I said the code wasnt being released 
sockets = php.net.
modules are fun... im running through ideas for my irc bot. I also need to figure out if i can host an irc network/chan so i can test on my own server - I dont have internet access on my php machine.
___________________
http://www.philbrodeur.com - Expert PHP Development and Tutorials