ADICON Support Forum Applied Digital, Inc.
Page 1 of 1 1
Topic Options
#21009 - 04/06/09 01:39 PM Serial Control using PHP Script
mickel Offline

Registered: 12/12/06
Posts: 3
Hi all,

I have created a script to send X10 commands trhu ocelot serial using a webserver with php

You can download the sctipt at

Script using a php serial class that only runs on linux(only in linux you can read the serialport).

Unpack files place them on you webserver and run menu.php.
You see that you can control your light and the commands are log in a log.txt file.

Don't forget to cmod 777 your serial port in linus otherwise you get a fault messages.

It a bit messy program but is working so in my next post i will clean it up and also write a script to read the port.

If somebody as some tips or trick please let me know.

Br mickel

Edited by mickel (04/06/09 01:40 PM)

#21011 - 04/07/09 03:06 AM Re: Serial Control using PHP Script [Re: mickel]
Sash181 Offline

Registered: 03/10/07
Posts: 23
This looks interesting.

If this was running on stand alone webserver (like Xport), would it be able to interface/send X10 with a Leo II connected on a LAN?


#22517 - 05/25/11 04:27 AM Re: Serial Control using PHP Script [Re: Sash181]
woods2dellis Offline

Registered: 05/25/11
Posts: 1
Loc: 73 Armstrong Ave, Jersey City,...
Unable to answer this as m not a PHP programmer.

watch box
watch boxes

Edited by woods2dellis (05/25/11 04:27 AM)

Page 1 of 1 1

Moderator:  Dan Smith, Monte G, ADI Tech Support, Guy Lavoie 
Hop to:
Who's Online
0 registered and 0 anonymous users online.
Recent Posts
Random Behaviour
by ADI Tech Support
01/23/18 11:16 AM
Shout Box

Newest Members
brigiel, vevevie, zhutree, 416, saiqul
3003 Registered Users
Forum Stats
3003 Members
19 Forums
4005 Topics
23463 Posts

Max Online: 132 @ 11/13/16 10:07 AM
Su M Tu W Th F Sa
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28