Barev David, I think this is solution 1. C/C++ updates database (MySQL or other) 2. There is some PHP file that is viewing your DB info(printing static info) 3. There is other PHP file that is using AJAX for interactive update of information (This one is sending request to first PHP file and if needed updating second one) I don't know maybe this is very complex, but I would choose this one ;) Best, Gevorg -----Original Message----- From: David Giragosian [mailto:dgiragosian@xxxxxxxxx] Sent: Tuesday, August 28, 2007 10:08 PM To: Simon Cc: php-general@xxxxxxxxxxxxx Subject: Re: c++ and php! search for a brigde On 8/28/07, Simon <simon.xhz@xxxxxxxxx> wrote: > > you can use sockets in php, they work the same as berkley sockets > you can use system() in php, to call your C++ program (the program > could output html) > in my opinon CGI with C/C++ is obsolete, use php/apache for best results! > > another nice way is to have your C++ program independent, outputs its > results/values into a database (mysql)... and a php page will just > read what's in the database to display it nicely. That's what we do here. C/C++ app gathers and inserts the data into the db, minute by minute, and PHP apps are used for display, reports, graphics, etc... Our LAMP system has had nary a glitch in over 3 years of continuous usage. That would be a clean way of doing it. > > Good luck! David -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php