Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- error_reporting(E_ALL | E_STRICT);
- $socket = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP);
- socket_bind($socket, '0.0.0.0', 80);
- $from = '';
- $port = 0;
- socket_recvfrom($socket, $buf, 12, 0, $from, $port);
- echo ">> $buf";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement