0

i am doing a project where i require some message from php file to be transfer to c.is it possible to do. if so can u specify certain links for looking and studing too area

2
Contributors
2
Replies
3
Views
9 Years
Discussion Span
Last Post by digital-ether
0

i am doing a project where i require some message from php file to be transfer to c.is it possible to do. if so can u specify certain links for looking and studing too area

Not sure if PHP has an API for this.

You could run a command on the server with exec(), system() etc.

You could also write your own service or daemon in PHP or C that will execute your C commands - if there isn't an existing one already. Bind the daemon to a port and have PHP talk to that port to execute your C commands.

0

You could also write your own service or daemon in PHP or C that will execute your C commands - if there isn't an existing one already. Bind the daemon to a port and have PHP talk to that port to execute your C commands.

Your webserver itself is a daemon -- so you could just have PHP fetch the results from C via a URL (HTTP), or vise versa.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.