Jump to content
  • Advertisement
Sign in to follow this  
Byron

[web] C++ to php comms

This topic is 4173 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
Advertisement
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
or, you can get 'fancy' ('creative'), write a tcp server in php and use simple sockets in your c++ app :D

Share this post


Link to post
Share on other sites
Quote:
Original post by Paulius Maruska
I would recommend libcurl for that. I have used it myself and I really liked it.


Thanks - that looks good!

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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!