hakermania Posted May 7, 2011 Share Posted May 7, 2011 Hello! I'm making a program in C++ which has some variables that I need to show inside my .php page. So, I have 2 main questions 1) Is there a possible way to detect when my .php page is being requested 2) After this to inform the C++ program that the page is being requested (editing a file or writing to files would be preferable to be avoided) and 3) After this the C++ program to give to php the variables that I want to show (again writing to files isn't preferable) Perhaps question (3) is not for these forums, but I'd like to know if someone has an idea about the issue.... Unfortunately I have the impression that PHP is a simple script language and cannot do s0 high-level things... Prove me wrong, please Link to comment https://forums.phpfreaks.com/topic/235782-php-cross-programming-language-communication/ Share on other sites More sharing options...
FrogNL Posted May 7, 2011 Share Posted May 7, 2011 PHP is way more than a scripting language, I know companies that write large programs in PHP just because of its easy syntax and because many programmers know how to code in PHP. But can't you achieve your goal just by executing a C++ program on your server? You can easily do that in PHP with the exec() function (or passthru() if you need binary data)... Link to comment https://forums.phpfreaks.com/topic/235782-php-cross-programming-language-communication/#findComment-1212015 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.