Hello,

Me and my development team are not sure how to get a users username/uid from their login on the website into the C++ application. I use PHP Cookies and Sessions for that. Is there anyway that this could work?

Thanks.

Hello,

Me and my development team are not sure how to get a users username/uid from their login on the website into the C++ application. I use PHP Cookies and Sessions for that. Is there anyway that this could work?

Thanks.

On the server side, you can use the "exec" function in PHP

http://www.php.net/manual/en/function.exec.php

or you can set up a C++ executable as a CGI-BIN script and have a form submit to that executable script directly. If you need C XML parsing as part of your C program, try libxml2:

http://xmlsoft.org/

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.