Hello,
Please excuse me if this isn't the correct place to post this topic.
I have a friend that knows PHP, and I know C++. We want to make a PC game together. I would handle making the core game, and he would use PHP to create a server, allow for users to connect to said server, transfer info to and from the server, etc.

Is this even remotely possible? If so, how would we go about integrating PHP into a C++ project?

Thank you in advance.

Rather than trying to design the game around the programming language, you should consider the reverse. In other words take the technology out when designing the concept. Build a model, screenshots, flow of the game. Them figure out you can leverage your current set of resources and where you lack, you find others that can bring their resources to the project.

I look at PhP as a scripted version of C++. My advice (just off the top of my head) is to code it entirely in PhP.

Yes. It can be done. Just use RESTful HTTP calls.

For example, I have a windows phone app which GET/POST/PUT/DELETEs XML and JSON data to/from a Java EE web server.

Rather than trying to design the game around the programming language, you should consider the reverse. In other words take the technology out when designing the concept. Build a model, screenshots, flow of the game. Them figure out you can leverage your current set of resources and where you lack, you find others that can bring their resources to the project.

We've already done that. We concluded that for almost any type of game, we'll need PHP for a login system to discourage piracy.

Yes. It can be done. Just use RESTful HTTP calls.

I thought that was for Java only?

It can still be done, its just a bit kludgey.

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.