I'm writing a watchdog-style program in Java - that is, it will be running constantly. I want to be able to somehow send input and receive a response using PHP.
What is the best way to do this?
Thanks!
EDIT: Just to clarify, the Java and PHP are running on the same machine.