I wrote a C program that is successfully able to read and write from the serial port.
When the program is run in shell or terminal on linux it can read and write data to the micro controller.
However when the program is embedded in PHP <?php echo exec("./send toserial.out"); ?> it is unable to send information to the micro controller.
I have tried other programs embedded in PHP, like a C program that can read and write to a file and that works just fine.
I would really appreciate any help on this matter. Thank you
When the program is run in shell or terminal on linux it can read and write data to the micro controller.
However when the program is embedded in PHP <?php echo exec("./send toserial.out"); ?> it is unable to send information to the micro controller.
I have tried other programs embedded in PHP, like a C program that can read and write to a file and that works just fine.
I would really appreciate any help on this matter. Thank you
Comment