1

So I got a requirement to create a polling system which is to be same as zoom poll. The idea is to completely replace zoom polling system with our code.

The company wants to show the polling screen only when they trigger from the admin panel.

So, I have to trigger the poll from the admin panel to some specific page of users. The poll will be triggered as a popup to the user screen.

Any hint can help me to work on it. But, I just couldn't find the best way to do it that's why I am here for some help.

Thanks

Adnan Siddique
  • 324
  • 3
  • 9
  • Are you asking how to send a message from a PHP server to a PHP page open in the client's browser? –  Aug 29 '22 at 10:35
  • It's not a message but basically it's too much same. I need to show a popup to the client's browser and that in real time when admin wants to show the popup to the user. – Adnan Siddique Aug 29 '22 at 10:37
  • Sending a real-time message to a PHP client is not easy; there's no ready-made solution for this because people who want to be able to do that usually don't pick PHP for their backend. See here for reference, but be aware of the fact that the question and answers are pretty old: https://stackoverflow.com/questions/6398887/using-php-with-socket-io –  Aug 29 '22 at 11:16
  • A workaround is to put the poll in a queue server-side and have all clients repeatedly ping the server for a new poll (like every three seconds or so). –  Aug 29 '22 at 11:17
  • @ChrisG but it will repeatedly refresh every 3 seconds. There are polling system which have many question in it. If refreshing every 3 seconds then the form will get cleared every time it will refresh the div. – Adnan Siddique Aug 29 '22 at 12:32
  • I didn't mean refresh the page, I meant use ajax/fetch to send a request in the background. –  Aug 29 '22 at 14:33

0 Answers0