multithreading - PHP Threading Explained -
in given php page, if 1 'echoes' given piece of information, sent user, , no others. decides client receives data, , can changed? furthermore, 1 use single script send data multiple clients?
short answer: no
long answer:
when connect webserver, web server responds sending piece of data. in case 'echo'. connection closed , history.
theoraticly possible send 1 piece of data multiple clients long connected webserver. i.e web browser shows 'loading page'
practically, not possible, because once connection closed, user has hit refresh button again connect server , fetch new data
i suggest read fantatic article give broad sense on how web servers work. http://computer.howstuffworks.com/web-server.htm
Comments
Post a Comment