Vanndril said:
In the meantime, anyone know of any good chat scripts we could use? I'd prefer it be on the hub rather than off-site, so none of the chat room sites and whatnot.
The problem is, IRC servers aren't ever coded in PHP because it would be horrible. The reason is that, even if PHP consumes <<
moe.slayerduck.com/|"little memory">>, every user connecting to the site spawns a new instance, so information cannot be shared between one instance and another, without database access. And since an IRC would involve constant polling by several users, this would mean lots of memory.
For example, here on the booru, every page hit has to do a lot of work from the ground up. It is possible to avoid this, for example, on my hover zoom script I made a code path which uses <<
php.net/manual/en/book.apc.php|Alternative PHP Cache>>, <<
hypnohub.net/hypnohub-hover-zoom.php?apc|and now I know it's installed here>> (even though I didn't test it and just read that manual, so I'm glad it worked and didn't cause a server error, lol), but not many scripts make use of such things.
On Node.js, ASP.NET and I believe Ruby on Rails and Python, scripts can have shared global state, so they consume "more memory", but it doesn't increase too much when having lots of users.
Still, even if IRC on top of PHP is out of the table (
I think), there are other options, like <<
www.phpfreechat.net/demo|this one>>.