to explain my misunderstanding I'll give an example:
If 2 different users are viewing the same database table (within their browsers) and one of the user alter the table I would like the other user to see the changes immediately.
If I would do it with C++ I would create observer pattern and notify all the registered observers (users) that the subject (database table) changed. I'll do it by calling the notify method right after I alter the table. I can do this because all the users interact with the same instance of my application (there will be only one application instance at the server).
I know that I can create observer pattern also with PHP quit easily. But what I don't understand is how PHP application behave, will my application have different instance for each user? how can I solve the above example?
What am I missing here?
Any answer, article, link to relevant info will be much appreciated.