Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Chatbox without using a flat file or a database

treshrtreshr Posts: 326Member
Does anybody have any experience creating a chatbox using the usleep() method without an database or a flot file.
Is it possible to create a file using a socket or something and that i looks for a message.
I don't want to create a chatbox that has to refresh every second.

Thanx in advance,

--=][tReShR][=--

Comments

  • netgertnetgert Posts: 331Member
    : Does anybody have any experience creating a chatbox using the usleep() method without an database or a flot file.
    : Is it possible to create a file using a socket or something and that i looks for a message.
    : I don't want to create a chatbox that has to refresh every second.
    :
    : Thanx in advance,
    :
    : --=][tReShR][=--
    :
    you can make one script that open a listening connection and handles data transmission
    and a second script that users use to connect to the first one. this sends and retrieves sdata from the first one using sockets
    the 1st one is 'infinite' script - will terminate when server is shut down
    the 2nd might consist of 2 frames - one that displays data, and other that will reload the 1st frame when data becomes available (wait until socket becomes readable & then send JavaScript code to reload the other frame)
    better sketch down the algorithm, as this syncing might get messy
    [hr][red][italic][b]N[/b][/red][blue]et[/blue][red][b]G[/b][/red][blue]ert[/italic][/blue][hr]

Sign In or Register to comment.