Sign in to follow this  

[web] PHP?

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

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