1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2003
    Rep Power

    Question 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!
  2. #2
  3. No Profile Picture
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2003
    Yerevan, Armenia
    Rep Power
    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.


IMN logo majestic logo threadwatch logo seochat tools logo