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

  • Home
  • SEARCH
  • 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 8503127
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T01:40:27+00:00 2026-06-11T01:40:27+00:00

Possible Duplicate: How to make a real time “User is typing” notice to all

  • 0

Possible Duplicate:
How to make a real time “User is typing” notice to all in chat

I’m developing PHP MySQL jQuery/Ajax chat, and trying to enchase it with some fancy features like User is typing… message

I found plenty of topics users describing how to make requests to inform server user is typing message, but that’s not issue. I need a help in next step 🙂
How to make “handover” of isTyping variable from client to client using server? I want to try to avoid storing it as it can overwhelm DB engine with unnecessary data. Is there some way to do so just using servers RAM? This data is not crucial so possibility of losing it is not big deal. Memcached is also an option, but preferred not.

Tnx in advance

  • 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-06-11T01:40:29+00:00Added an answer on June 11, 2026 at 1:40 am

    PHP/MySQL is not the right stack to develop a chat in my opinion.

    That’s because such stack is stateless, and can’t track user events: well it could actually, making use of sessions and database, but this implies continue polling from clients in order to retrieve changes in the state, and it implies:

    • are there new messages for me?
    • hey, are there new messages for me?
    • be kind, tell me if there are any messages for me.

    The finest approach is to go with socket.io over node.js: long story short you have a persistent connection [using WebSockets, long polling and such tecniques] between clients and server, and it becomes a simple setup of event listeners on all the sides of the application.

    You can find a live example here.

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

Sidebar

Related Questions

Possible Duplicate: How to make For Loop Real Time in PHP I think when
Possible Duplicate: In JavaScript can I make a “click” event fire programmatically for a
Possible Duplicate: Does it make sense to use the <table> tag on a “modern”
Possible Duplicate: how to make “pretty rounding” in R? I have a number, say
Possible Duplicate: How do I make a request using HTTP basic authentication with PHP
Possible Duplicate: insert multiple rows via a php array into mysql I know about
Possible Duplicate: How to make a redirect in PHP? Hi! How do i forward
Possible Duplicate: How to make in Javascript full screen windows (stretching all over the
Possible Duplicate: PHP make if shorter I have an if statement that looks like
Possible Duplicate: How to make PHP set HTTP status code to 500 automatically in

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.