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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T02:36:54+00:00 2026-05-21T02:36:54+00:00

I am using zend framework with PHP to develop a web application where I

  • 0

I am using zend framework with PHP to develop a web application where I have following requirements:

  1. When client1 tries to have a chat with the client2 a Confirmation box should appear saying “Your chat request has been sent to the Client 2. Please wait…..” with remaining time in seconds that is 60 seconds at the start. And it should decrease by 1 every second.

  2. Then At the same time the Client2 should get a Confirmation box saying “Client1 requested a chat session with you. Wanna accept…?” with remaining time in seconds. If Client2 clicks on Yes then the chat session should start. If Client 2 clicks on No then the Confirmation box at both side Client1 and Client2 should disappear.

  3. If Client2 does not accept chat request from the Client1 and the remaining time reaches to 0 then chat session should not start and the confirmation box should be closed at both side.

  4. The remaining time should be synchronized at the both side.


Hope I am clear enough. Please suggest some code or sites that helps me.

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-05-21T02:36:54+00:00Added an answer on May 21, 2026 at 2:36 am

    Synchronizing time solely depends on network speed.
    If any of the client is having slow network, it will fail or there will be some lag.

    Depending on practicality of application there are three approach. (Ascending order)
    1. Store in Database, each time a request is made.
    2. Store in File or Session and Schedule a dump into Database
    3. Store In memory using Memcache so that there wont be any time consumption for Database Query or File Opening (File opening time is negligible but remember 3rd point is for very critical situation). Schedule a dump into database at later time.

    In all the cases you have to take ServerTime into consideration not the Client’s PC time. (And Yes you can get it from browser using Javascript)

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

Sidebar

Related Questions

All, I have a PHP Web application built using Zend Framework and MVC with
I have a PHP MVC application using Zend Framework. As presented in the quickstart,
I have a Zend Framework (PHP) web application that has a table with a
I am using zend framework... so I have the following code in display.php: <?php
I'm using PHP Zend framework for my web application. When users register, I send
I am developing a web application using zend framework. For select statements I have
I'm currently using Zend Framework 2 beta for on PHP 5.4.4 to develop a
I'm using PHP and Zend Framework in my application. User can enter some HTML
I'm using Zend Framework AutoDiscovery to generate WSDL for a PHP SOAP Web Service.
I want to write a php application using Zend Framework 2 (just the beta

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.