Reputation: 4145
Is there any way in PHP that if action X is performed then event Y should happen. Right now to track latest update, I am calling jquery Ajax at continuous time interval but I think, that is not a good way and put load on server.
Following I am trying to achieve
I want to implement one of my website page in many another websites so I just want, as soon as user clicks on "Add to cart", I can notify my customers that now you need to update cart count on your website.
I have gone through How to fire AJAX request Periodically? but did not understand it properly.
Any suggestion, is it feasible or does my question make sense? If yes what could be the possible solutions?
Upvotes: 0
Views: 51
Reputation: 2729
There is several ways for doing this:
Upvotes: 1