source: trunk/gram.php@ 16

Last change on this file since 16 was 1, checked in by zollarsd, 13 years ago

Initial import

File size: 337 bytes
RevLine 
[1]1<?php
2$args = $_SERVER[ 'argv' ];
3array_shift( $args );
4
5$buf = implode( ";", $args );
6echo "$buf\n";
7$socket = socket_create( AF_INET, SOCK_DGRAM, SOL_UDP );
8
9// socket_sendto( $socket, $buf, strlen( $buf ), 0, 'localhost', 12233 );
10socket_sendto( $socket, $buf, strlen( $buf ), 0, '127.0.0.1', 12233 );
11socket_close ( $socket );
12?>
Note: See TracBrowser for help on using the repository browser.