PHP actually has a lot of IRC functions built in.
PHP Manual - IRC Gateway
There is even a fully PHP type CHAT program at PHP Wizard:
PHP Chat
I must say that I do agree that it would be great to get on the chat when you are stuck behind a corporate firewall.