source:
trunk/gram.php@
4
Last change on this file since 4 was 1, checked in by , 13 years ago | |
---|---|
File size: 337 bytes |
Rev | Line | |
---|---|---|
[1] | 1 | <?php |
2 | $args = $_SERVER[ 'argv' ]; | |
3 | array_shift( $args ); | |
4 | ||
5 | $buf = implode( ";", $args ); | |
6 | echo "$buf\n"; | |
7 | $socket = socket_create( AF_INET, SOCK_DGRAM, SOL_UDP ); | |
8 | ||
9 | // socket_sendto( $socket, $buf, strlen( $buf ), 0, 'localhost', 12233 ); | |
10 | socket_sendto( $socket, $buf, strlen( $buf ), 0, '127.0.0.1', 12233 ); | |
11 | socket_close ( $socket ); | |
12 | ?> |
Note:
See TracBrowser
for help on using the repository browser.