serial printing to web page

In need of help, i have a webserver . 4 buttons , 3 inputs and would like to print text to it.
MY problem as, a complete novice is i cannot see any example of how to send text rs232 into pin rx pin and have it printed out on the web page. THESE text will be no more than 4 lines of 16 characters. Example rx pin would receive "door open" and this would be on the web page. Can anyone help

I think your best best would be to write a php script using the php_serial class to read the serial data from the device and store it as a variable and then display text based on the value of the variable on the webpage.

I think if you search php_serial you'll probably find examples that exist.

Just some things to keep in mind:

  1. Do you want the webpage to "read" the serial data everytime the webpage is reloaded, or only when another event happens?
  2. Everytime you "read" the serial data the device will reset, so either add a delay to the script or use a capacitor between the reset pin and ground.
  3. If you don't already have php running, get that running first.

Hope this helps a little.

Hans