Hi, I want to build an app that does the following:
1) Take a user-supplied PHP script and pass it to the PHP interpreter to execute it.
2) Take the output, whether it be from memory or a temp file, and pass it to a Web Browser hosted in the app, to show the HTML
3) Handle the http requests I.E. the user's clicks, so instead of making the http request through a web server, another local PHP script gets called and again to step 1)
This is to have a way to use PHP for desktop scripting while having the benefits of a web GUI, and not having to use a web server. If you would like to discuss if this is a good idea or not, or if you would like other language better, etc. you're welcome, but What I'm most interested in getting here is:
a) What way do you recommend to host a web server in the app? CWebBrowser, CHTMLView, other?( I think of IE, although I use firefox, I think IE would be the easiest to implement, at least at the beggining. I don't have much experience on the win32 API )
b) Do you know any good tutorials or articles that explain how to do a) with good detail?
Requirements: C/C++ & Windows. ( No .NET ) Why? because that's what I know and feel more comfortable with.
If this proves to be useful I'd like, in the future, to port it to other platforms like Linux and to use better browsers, like Mozilla.
Thanks!