With the appropriate module/library installed, PHP is able to connect directly to MySQL. If your PHP script(s) is/are well-written, you shouldn't need a separate C/C++ CGI script... Where do you see the C++ coming into the picture?
In my application. Its built with c++ using the MFC lib. My PHP script includes the connection script from an online server. I want to know: How to run PHP in an MFC application? Do i need a seperate module/extension/library? Can i convert my MFC app's html file to a php file? Do I have to bring the PHP file in directly using C++?
So you're trying to run a PHP script inside a program written in C++...? This PHP script is used to establish a connection to a MySQL server? So you're trying to connect C++ to MySQL through PHP?
I'll have to back out at this point. By doing it this way you're getting into some messy stuff that I'm not familiar with, if it's even possible.
There might be a library that allows you to use PHP inside C++, but if there is, I'm not familiar with it. You may want to consider installing a MySQL library for your C++ and establishing the connection directly in the C++ code instead.
the PHP script conencts to an online php script that contains conenction information. In the PHP script tat i want to include in the app, processes data taken from the db and then displaying it in the app itself. No c++ conenctin to mysql, I need to know how to include a php script in a c++ app tat is usin the mfc lib.
Hi, as I was told that my code doesn’t scale well at all, I thought perhaps I’d try to get a better understanding of interfaces/abstract classes and classes and the relationship between them.
I don’t want at this stage work on a big separate project as I've already got plenty ...
I am writing a java program that needs to execute shell commands, so I wrote a function that would take the command to execute as a string (ie: "mkdir ~/Folder1") and execute that command with the shell. Here is the function:
Runtime run = Runtime.getRuntime();
Process pr = ...
Hi. I have a form with list box : lst_product, datagridview : grd_order and button: btn_addline. lst_product has a list of product ids selected from database (MS Acess 2013) , grd_order is by default empty except for 2 headers and btn_addline adds rows to grd_order.