simple example passing variables from php to c using sockets