Jump to content
  • Advertisement
Sign in to follow this  
Khaos

[web] PHP?

This topic is 4907 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

Is there any way to use PHP to execute or send information to a (compiled) program that is on a server? I other words, let's say I have a program running on my server. How can I use PHP or HTML forms to send information to that program so it can further process information, and then send information back to a web interface? Any ideas at least? I just need to communicate with an executable program that is running on a webserver through a web interface. PHP? What? How can I do this? Thanks for any tips.

Share this post


Link to post
Share on other sites
Advertisement
The PHP parser itself works by taking the input from the stdin stream, processing it and finally outputting the result to stdout stream. You could follow the same practice with your executable, and use the PHP command "exec" to drive it based on the web request.

Share this post


Link to post
Share on other sites
You can also toy around with the apache handlers. It's possible to set apache up in such a way that certain executable files get executed on the server instead of being downloaded when you request then with a browser.

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!