Hi. Thanks for your reply. But I am still rather puzzled by the exec(), passthru() and system() command. I managed to call the C program using all three of the commands but there it does not seem to be running as it should be.
At the start of the program, my C program prints some statements before it does some exception checking to ensure that a board is connected to it. Somehow when I use exec, passthru or system, the statement saying that the board is NOT connected is displayed even when the board is connected. Any clue?
Another thing is the new line (\n) command. As I will be printing some of the statements in the C program on my php page, I would like to be able to make the statements go to a new line. Could someone please advice?
Thanks in advanced.