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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T12:25:33+00:00 2026-06-02T12:25:33+00:00

Im starting a new project very soon, and im considering long polling to notify

  • 0

Im starting a new project very soon, and im considering long polling to notify the users that they have a new private message/Notification that they have to check, really similar to how Facebook uses to notify you that someone has posted something about you/Liked a photo of you..

From what I have read, cometd seemed like a really good option to start with.

Then, other ways started emerging, like: Socket.io, and node.js ..

Now, my question is; Which one do you think is the best option for this case and why?

What I need to do exactly is the following;

  • User 1 logs into their account
  • User 2 sends User 1 a message which gets stored into the database and a flag is generated, (If possible?!)
  • The PHP script responsible for User 1 should pick up the flag, and push a notification to User 1

I know how to take care of the javascript side, but I have never done anything similar to long polling.
Im using jQuery as javascript library and PHP for the server side.

So recommendations and any good resources to do this?

  • 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-02T12:25:35+00:00Added an answer on June 2, 2026 at 12:25 pm

    It would be beneficial to use a combination of php and also node.js. node.js is made for use with persistant connections, and push communication instead of poll.

    http://nodejs.org/

    Here is a quick video i found: http://vimeo.com/29099827

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

Sidebar

Related Questions

I'm starting a new project that involves users paying to see educational videos. These
I am starting a new project for a client today. I have done some
We are starting a new project and we have decided to use javascript namespaces
I'm currently starting a new project that will display user distrubuted data links in
I am starting a new (actually very old) project which I know is in
Just starting to learn scala for a new project. Have got to the point
We're starting a new project that has some messaging and queueing requirements that are
I am starting a new project and I need some very pretty controls. The
We are starting a new project based on EJB 3.0. I have a spring
Currently I am starting av new project and considering which database technology I want

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.