Hey all,
I'm trying to create a debug listener that listens on a port for a data string and forwards it to a php script as an argument. How can I specify that the input to the port should be used as an argument?
For example: The remote device send a string with comma separated values value1,value2,value3
and I'd like to run the command php file.php value1,value2,value3
and have the values used in $_SERVER["argv"][1]
.
Any help would be appreciated!