Connecting Tech Pros Worldwide Forums | Help | Site Map

Can php control USB port on PC?

veg_all@yahoo.com
Guest
 
Posts: n/a
#1: Apr 16 '07
I may be totally off the track but I want to be able to control the
USB port via a php script. Is this possible? Here is what I am trying
to do:
I want to create a simple device with three lights that plugs into a
usb port. Now I want to be able to control which lights are on from
any web browser anywhere in the world.

Do I need to use a compiled language, like c++ for this? The closest
thing I have found is this site:

http://www.trackercam.com/TCamWeb/motorpod.htm

Any suggestions to point me in the right direction? I hope I can use
php since that is what I am most familiar with.


Darko
Guest
 
Posts: n/a
#2: Apr 16 '07

re: Can php control USB port on PC?


On Apr 16, 6:47 pm, veg_...@yahoo.com wrote:
Quote:
I may be totally off the track but I want to be able to control the
USB port via a php script. Is this possible? Here is what I am trying
to do:
I want to create a simple device with three lights that plugs into a
usb port. Now I want to be able to control which lights are on from
any web browser anywhere in the world.
>
Do I need to use a compiled language, like c++ for this? The closest
thing I have found is this site:
>
http://www.trackercam.com/TCamWeb/motorpod.htm
>
Any suggestions to point me in the right direction? I hope I can use
php since that is what I am most familiar with.
Maybe you could (if the application is on a Linux server, of course)
just open /dev/sda, or whatever your device is, file and read/write to
it. You just have to see about the protocol of your device. I don't
know if that can help.

Steve
Guest
 
Posts: n/a
#3: Apr 16 '07

re: Can php control USB port on PC?


yes, however...

you have to have access to the pc and device that php will be
massaging...whether it's on the server where php runs or other pc.


<veg_all@yahoo.comwrote in message
news:1176742026.478747.188620@o5g2000hsb.googlegro ups.com...
|I may be totally off the track but I want to be able to control the
| USB port via a php script. Is this possible? Here is what I am trying
| to do:
| I want to create a simple device with three lights that plugs into a
| usb port. Now I want to be able to control which lights are on from
| any web browser anywhere in the world.
|
| Do I need to use a compiled language, like c++ for this? The closest
| thing I have found is this site:
|
| http://www.trackercam.com/TCamWeb/motorpod.htm
|
| Any suggestions to point me in the right direction? I hope I can use
| php since that is what I am most familiar with.
|


Closed Thread