Everyone hates it when you stop by a chat room and you're the only active person in there at the time.
If I were you, I'd wait until your site gets ridiculous amounts of traffic to introduce a chat room

As far as the technical stuff, I think I saw some php chatrooms available on http://www.hotscripts.com