HELP!!!!

Can someone give me a code on how to access the serial port using PHP. I am obliged to use LINUX os. I really need this code for my thesis.

Thanks.