To what extent can PHP control the server? I’m looking to write a web application that will Communicate with a device on a COMM port. Can PHP do this, or will I have to use perl/c/c++? If it is possible dose anyone know of resources on the Web to help?
Steve
Use PERL or C. PHP was not designed to do things like that. (who would ever want to be able to control their serial port through a web-page?)
someone that wants to control a telescope via the web using lx200 commands :o)
That would have been my second guess. :-)
my first guess would have been 'someone who wants to invite a bunch of hackers to completely mess up his system'
You can
1 run a command from php that opens the port, send command, closes the port. There is a risk here, security risk.
2 write to a file/pipe and have some deamon output data to and from the port
Saludos Gerardo