Sign in to follow this  

[web] C++ to php comms

This topic is 3864 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am looking to update my website via a win32 executable so that my app talks to php script on my website and gets info back. Anybody got any good pointers on to do this?

Share this post


Link to post
Share on other sites
The obvious way would be to have your win32 app put data in a database, and let the php site read from it when rendering a page.

You might have to be a bit more specific about how/when/what though. How do you want them to "talk" (Does the php app request info from the executable, or the other way around? When does it happen? When a php page is viewed or... some other time? And what info are we talking about?

Share this post


Link to post
Share on other sites
Sorry - should have been more specific.

What I mean is that if I have a win32 app on my pc (i.e. not on the server) I need it to request info from a remote website that I have created and be able to send information to the remote web site via a PHP script on that remote web site.

So I guess what I am asking is if there is a simple solution that allows me to do a HTTP GET or POST from a win32 app.

Share this post


Link to post
Share on other sites
I second libcurl. I use it for a lot of data importing between a Windows/ASP 1.0/MSACCESS server to a PHP/Linux/PostgreSQL server. It r0x0rz j00r s0x0rz.

Share this post


Link to post
Share on other sites

This topic is 3864 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this