Basically, I want to inform a C++ application (a game application) when an event occurs in my PHP page.
Below is an example:
- User logs in to website and purchases something.
- PHP validates this transaction and returns a JSON/XML object to C++ application.
- C++ application receives transactionID and gives user the item he bought.
Right now I do this in a bad way. PHP writes to database, C++ application constantly reads the database, causing a performance loss.
How can I archieve this?
Use ZeroMQ supports both PHP and C++;
Simple hello World Example
PHP