By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,587 Members | 1,070 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,587 IT Pros & Developers. It's quick & easy.

send data from server to all clients

P: 59
hiz, is there a way to send data from php server to all clients ?

i read about websockets and waterspout, but i need full implementation to this plz..

i got a dedicated linux server with root account..

thanks in advance
Apr 12 '12 #1
Share this Question
Share on Google+
4 Replies

P: 1,059
The question is not clear a lot of thing, but you asked in PHP forum. So I would guess that you are talking about HTTP server.

Here is one thing about HTTP server. It never knock any client. It only response to client.

But yet, can you send data to all client?
There is way. A simple idea would be create a and then push last notice to that table. and all client would have to have the capability to send dynamic request to http server in an interval. Client can send the last id(that she has) to http server. Server would reply if there any newer than the received id. you can also invoke the relation with logged in user.
Apr 13 '12 #2

P: 59
no at all, there are many things u missed, i think u need to check this power point, which will help u so much.

there are short pooling, long pooling and websockets.

what i need is websockets implementation techniques.
Apr 13 '12 #3

P: 1,059
read page 6 carefully and compare with my reply again please.

The web runs (for the most part) on HTTP
HTTP is one way
User asks for data
Server sends data back
The server can't do anything without the user asking first

I didn't miss them.

Another suggestion, dont get twisted with the fancy words
Apr 13 '12 #4

P: 59
did u read websockets on ppt ? it's new 2010 technology.

here is a chat app with websockets where server sends data to all client.

the problem is that app. didn't work over network, only local !!
Apr 13 '12 #5

Post your reply

Sign in to post your reply or Sign up for a free account.