php serial communication in linux

The commands are not reaching the microcontroller . Can you please give me the code in alternate methods ? thanks for the fast reply