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

    Join Date
    Mar 2003
    Posts
    2
    Rep Power
    0

    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
    Member
    Devshed Newbie (0 - 499 posts)

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

    -Nar

IMN logo majestic logo threadwatch logo seochat tools logo