n00b: receive input over TCP/IP and use it to update HTML

Posted by mawg on Stack Overflow See other posts from Stack Overflow or by mawg
Published on 2010-04-20T04:24:46Z Indexed on 2010/04/20 5:43 UTC
Read the original article Hit count: 214

Filed under:
|
|
|

This has got to be a FAQ, so can someone please just direct me to a "network programming for dummies" URL?

The server wants to push information to a client or broadcast to all, when an event happens - as opposed to the clients constantly polling the server "just in case". The client then updates a browser page display.

How do I do that? (toldya it was a n00b question)

Should I have a thread which receives info on a socket and then writes it to a database which the browser display (PHP) can process with an HTML refresh tag, or what?

Sorry to sound so dumb.

© Stack Overflow or respective owner

Related posts about sockets

Related posts about polling