March 20th, 2003, 08:03 AM
please help, php and c program (urgent)
Is it possible to call a c program in php?
I have created a circuit (light sensors) and control it by a c program, this c program can show the status of the circuit and reset the circuit. However, it can only run in dos. I need to link the c program to the broswer, so that the user can crontol the circit and view the status of it using the browser. Is it possible to do it in php or there is some other ways to do it? can anyone help? thx!
March 20th, 2003, 09:53 AM
Php has a function called system(). It basically takes a command string as an argument and returns the result straight into the browser. I've tried this only in unix but i think it should be ok under microsoft's stuff.