I'm trying to create a polling program in Java that monitors some simple things about the network system it is running on. I would like this data to be 'sent' to a PHP script running on a networked web server which interprets the data periodically.
What I need to know how to do is forming the link between Java program (running as a process) and the PHP script. I'm thinking the Java program can use a network port to continually send out data which the PHP script can connect to and read but I'm not sure if that's the right way to be going about it or how to do it.
Any help with this would be grately appreciated.
Many thanks.
What I need to know how to do is forming the link between Java program (running as a process) and the PHP script. I'm thinking the Java program can use a network port to continually send out data which the PHP script can connect to and read but I'm not sure if that's the right way to be going about it or how to do it.
Any help with this would be grately appreciated.
Many thanks.