I just found an infrared interface to my computer that uses my COM-port. I use PHP to write to it using this script:
<?php
$hax = fopen("COM1:", "w+");
fputs ($hax, "This will be sent");
fclose ($hax);
?>
That script is working, and it sends the text out.
I've tried using it with Hyperterminal, and it works great. If I put my TV-remote in front of it, I can see Hyperterminal is receiving data.
I've also tried using PHP to recive data as well, but got no luck.
Does anyone have any idea of how I could use PHP to recive data from it?