I'd like to start off by saying that I'm pretty much a newbie when it comes to PHP. I've had more experience in it than any other scripting/programming languages though, so I wish to use it for my needs.
I've been googling away for the past two weeks or so trying to find a basic PHP IRC bot script that can connect to an IRC server, pass a ping/pong, and join more than one channel.
I'd also like the functions to be modular (in a ./commands folder or something).
But even with all that googling I don't know what to do. I've only come across older scripts that don't mention PING at all (not to mention that none of them can seem to agree on how to actually connect to the server [sockets_connect vs fsocketopen] and how to do things after [fswrite vs fsputs])
So I come asking for help with a very, very basic script that will pass a PING/PONG, be able to join more than one channel, and that can load !trigger or .trigger functions from single-file .php modules in a subfolder. Even if I somehow figure out to connect and join channels, the "read each line in the channel and load modular triggers and functions" part is probably way out of my league