RE: Option for Serial or Comm port communication with PHP?
| From: | Andrew Chase | Date: | Tue, 26 Feb 2002 17:25:12 +0000 |
| Subject: | RE: Option for Serial or Comm port communication with PHP? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-86278@lists.php.net to get a copy of this message | ||
I don't about accessing a serial port directly from PHP, but you can control
an X10 Firecracker on a Linix/BSD system by using the exec() command to run
BottleRocket:
http://mlug.missouri.edu/~tymm/
I threw together a script that would turn a lamp on and off from a web page
without to much difficulty. As if that wasn't geeky enough, I pointed a
webcam at it so that people could watch the light go on and off as they
clicked the link. :) Having the light turn on and off without warning got
old pretty quickly, so I took the script down... neat stuff, though!
-Andy
> -----Original Message-----
> From: Ken Lancaster [mailto:dlancast@bellsouth.net]
> I was hoping to work on a hairbrained idea that would allow me to
> use php to
> control an X10 or other serial device (security system, irrigation
> controller, etc,). I have read several hints at using the fopen
> function to
> do serial communications but these posts were a year old. Is it possbile
> to do serial communications using php. What are the options?
>
> Thanks in advance for your help.