I need to implement a php script on my website that would do the following:
- Connect to a remote server
- Send packet to the server
- Receive packet from the server
Everything is already configurated on the server side to respond to packet requests, I only need to figure out how to use php to connect to TCP/IP server.
Any ideas in which direction to look?
Easily with php sockets:
To read more, go to http://php.net/manual/en/function.fsockopen.php