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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T12:09:19+00:00 2026-06-15T12:09:19+00:00

I need guidance in PHP Ajax. I want to develop feature something like Gmail.

  • 0

I need guidance in PHP Ajax.

I want to develop feature something like Gmail.

Now here we go.

I have two page one is login and second is display.

Once login user will redirect to display page where he can see messages send from other user.

Now I want to implement ajax like whenever user send message to other user then other user immediately notify that he/she got message and also need to append it to their mail box.

I know I can do it using setInterval but is there other way because setInterval might be for either 5 sec or 10 sec but I want to fire it whenever other user send him message.

I see this in zaarly.com and Gmail form.

Thanks 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-15T12:09:20+00:00Added an answer on June 15, 2026 at 12:09 pm

    Ajax is a browser-side technology. It doesn’t have the ability to receive messages from the server without the browser asking for them. If you want to use Ajax for this, then you need to have it ping the server regularly using a solution along the lines of the one you suggested using setTimeout or similar.

    In fact Ajax is the wrong term for this sort of thing. The term you need to search for is actually known as Comet. You can read more about it here: http://en.wikipedia.org/wiki/Comet_%28programming%29.

    Comet is a catch-all term for server-push-to-the-browser technology. Your solution is one of many possible implementations for Comet, although it isn’t particularly efficient in terms of bandwidth. The wiki page linked above lists a number of other possible ways of achieving your goal, which you may want to investigate. But googling for ‘Comet’ rather than ‘Ajax’ will definitely help your research here.

    Hope that helps.

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

Sidebar

Related Questions

I am diving into the web application testing line(php ,ajax,javascript) and need some guidance.
I am in need of some guidance for the following design. I have a
Im trying my first form validation with PHP. I need some guidance with the
I have a very basic validation script using PHP, and I want to set
I've followed the PHP/MYSQL tutorial on Google Maps found here . I'd like the
I have an idea for my wordpress blog. I want to have a page
I'm new to PHP, so I need some guidance as to which would be
I really need some guidance here as this issue is pretty confusing and extremely
Here is my code , that i have done so far needed ur guidance
I have a problem that I need guidance with. I have an array that

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.