fsockopen

PHP 4, PHP 5, PHP 7, PHP 8
fsockopen - Open Internet or Unix domain socket connection
Manual
Code Examples

Example #1 fsockopen Example

PHP Version:

Example #2 Using UDP connection

PHP Version: