i want to send raw packets without opening a new socket at a port.
Actually i have to recieve server info. about a program already running, this program has already opened a socket at port 27960.
All i want is to send a string and get certain server info back
as there is already a socket opened at the port if i use this
$fp = fsockopen("udp://127.0.0.1",27960, &$errno; &$errstr);
it throws me an error
as it tries to open another socket at the same port.
Help required asap.
i can do this in java by just making an instance of datagramsocket
but i need it to be done in php.