serial port ttyO0 to web page in beaglebone black


i want to transfer the data which I receive through the serial port /ttyO0 to the PHP web page for monitoring through web page. I installed LAMP server in Beaglebone black ubuntu
I am a new person to beaglebone black. Please help and suggest to read from serial port and to display it in web page…

thanks in advance…

Ever get this sorted out? I am tring to do the same thing works from the command line but not in web page. I figure that Java might need to be involved to do some sort of dynamic refresh to the variable that holds the serial data… Im stumped anyways!