Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 996767
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T06:55:53+00:00 2026-05-16T06:55:53+00:00

I’m working with a closed community site (PHP-based) of about 100 users, and one

  • 0

I’m working with a closed community site (PHP-based) of about 100 users, and one of the features we’ve implemented is an ajax shoutbox that works as a “chatroom” on the site frontpage when users logged in. The dev team is using a private irc server for collaboration, and in one channel we’re running a quizbot. We came up with the idea to try and make a web interface for connecting to irc through our site, so all the (non-tech-savvy) users of our site can participate in our irc quizzes.

Now, I’m no IRC expert, but I’ve looked into a few PHP-IRC tutorials, and it seems to me that in order to connect to IRC, PHP needs to maintain an open connection.. which means that we need to do a comet-style trick and let the PHP script execute without timing out. However, this means that if the user navigates away from the page or closes the tab, we loose control of that php execution. We could probably figure out a way to stop the connection if this happens, but even so the user would have to reconnect to irc if he navigates back to the chatroom.

What we want to achieve is a way for users to be perpetually connected to the irc server, even if they aren’t logged in to the site. The dev team all have shell accounts on one of our servers, and we use screen and irssi to stay connected. I figure it should be somehow possible to have a php script connect to irc through a shell account that is always connected to irc. Because of our limited number of users, it isn’t a problem to set up shell accoutns for all of them, but I haven’t yet figured out the missing link – a command-line irc client that allows php access in some way.

Anyone have any suggestions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T06:55:53+00:00Added an answer on May 16, 2026 at 6:55 am

    One option would be to run a BNC, basically a proxy that will maintain connections to the IRC server, and your PHP script can connect to it when it needs to. You’d need to set up a way to identify a user’s PHP session to the BNC software, set session timeouts etc. that would all depend on the specific software you’re using and its available options.

    Alternatively it wouldn’t be that hard to write a special purpose proxy in say Python or something that would maintain a list of IRC connections for PHP sessions.

    You also might not want one IRC connection per PHP session, a single persistent bot connection on the IRC channel could easily include a username in each message identifying the PHP user that sent it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to clean up various Word 'smart' characters in user input, including but
We are using XSLT to translate a RIXML file to XML. Our RIXML contains
i want to parse a xhtml file and display in UITableView. what is the
public static bool CheckLogin(string Username, string Password, bool AutoLogin) { bool LoginSuccessful; // Trim

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.