| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
Need to run php file from C++ script
Hello,
I need to run php file from C++ script. The C++ is called from a cgi, and I need to call a php file (the php will connect to mySQL) Presently my problem is that the php is not parsed. I can see all the php tags in my HTML source code. How can I do that ? Best regards |
|
#2
|
||||
|
||||
|
How are you currently doing it?
I'm not great with C++, but my first thought was to call some type of HTTP reader class that would read the HTML returned from the HTTP URI... If that's how you're doing it, and your getting the PHP code itself, then perhaps your webserver isn't set up properly... wait, are you reading the PHP via HTTP from a web server? Another option might be to use PHP.EXE to parse your PHP file...you could try calling it from the command line using PHP.EXE [filename] |
![]() |
| Viewing: Dev Articles Community Forums > Programming > C/C++ Help > Need to run php file from C++ script |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|