Using JavaScript or PHP in C++ Programs?

Jan 2, 2011 at 1:19am
Is there any way to use JavaScript or PHP or any way to connect to the web in my C++ programs?
Jan 2, 2011 at 2:07am
closed account (3hM2Nwbp)
It's a bit ambiguous as to what you require. Do you want to read data from a website or do you require bidirectional communication?
Last edited on Jan 2, 2011 at 2:10am
Jan 2, 2011 at 4:43am
I need to be able to communicate with it. Basically be able to use JavaScript and PHP as if I was using JavaScript or PHP without C++.
Jan 2, 2011 at 7:20am
I use both SFML HTTP class and Microsoft WinHttp to do a request from a webserver and of course, the PHP code will execute in the server and my C++ code just gets the output. Don't know about javascript being involve here.

Try googling those two libraries. Good luck!


BTW, it would be nice if you explain more what are you trying to accomplish here.
Jan 5, 2011 at 12:31am
You might want to take a look at Google's open-source JS engine, V8.

http://code.google.com/p/v8/
Topic archived. No new replies allowed.