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 6602935
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T18:56:22+00:00 2026-05-25T18:56:22+00:00

What technology to use for chat? I would like to create an open connection.

  • 0

What technology to use for chat? I would like to create an open connection.

When I put a new message to the database. I want to automatically without using the timer and making loops came a new message to the browser.

I have Linux web hosting with a MySQL database.

I tried to make retrieving new messages and use the timer. Every three seconds I am using Ajax retrieve data. This solution seems to me inefficient, so looking for others.

  • 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-25T18:56:22+00:00Added an answer on May 25, 2026 at 6:56 pm

    PHP is a server-side scripting language, which means all the PHP is processed before the page even loads. In order to generate a chat-like environment, you would need to use Javascript to establish an open connection to the back-end (the PHP part). There are many methods to doing this, including polling (timers) and sockets (much more complicated).

    The best way I know of to handle a chat-like service using Javascript would be to check out Node.js and its capabilities, specifically demonstrated as a chat room here: http://chat.nodejs.org/.

    The problem with NodeJS and persistent connections in general is that most cheap hosting providers don’t allow you to have persistent connections open. You would need to pony up for a higher-cost dedicated server. There are, I believe, hosts that specifically allow NodeJS-type services in their environments, but I don’t know of any off the top of my head.

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

Sidebar

Related Questions

I would like to use the technology to reduce network load. Preferably I would
I want to create a desktop like app, but I'm kind of confused as
I want to know that which technology is best use in web application desktop,
i want to create a web chat/forum application that is google wave alike. when
Can anyone recommend a framework or basic technology to use to host a web
I work a lot with decision makers looking to use technology better in their
I wanted to know, while deciding which language or technology to use for implementing
I´m building an asp.net app, which technology I should use to get AJAX capabilities?
I am developing a web application based on JSF technology. I use Eclipse as
I'm debating what technology to use for an upcoming ASP.NET project. Assumptions: I will

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.