php serial communication in linux

:-)))))

If I understand you right, you just found a php script for serial communication and opened it with your webbrowser. If so, here are some hints that may help you:

  • a php script can basically well be executed without browser. Remove the starting "<?php" and the ending "?>", than it may already work. (by executing it with a php interpreter)

  • if you want to run an embedded php script, you cannot just open it in a browser from your local drive. It must be requested via a webserver, and the webserver, if configured properly, will do the php execution for you. But this is surely not what you are looking for, as it is unnecessary complicated.