php - Cross language development problem -


I am working on a project that includes database (my SQL), website (PHP) and a custom high performance server The application (C ++) C + + application (and its client applications with it) form the main part of the project, along with the long database of stored data for it. The website is mainly for displaying various statistics and administration.

1) I want to be able to communicate PHP Script and C ++ applications in some way, because the database is used only for continuous data, and in addition the C ++ application is a few things Therefore, in some cases the data should be asked to reload. It is highly probable that they will be on different machines, and even possibly different OS. I am considering the idea that TCP can be the best option with a few simple command-response protocols?

2) What is the best way to write common database interface code once, and be able to use it from both PHP website and C ++ applications?

You can not allow PHP to access the database. The C ++ app works all the databases, and it provides data on the PHP site. You can run a part of the C + + app from the server for PHP so that its reports and so on can be found.


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

jquery - SimpleModal Confirm fails to submit form -

php - Multiple Select with Explode: only returns the word "Array" -