Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head></head>
- <body>
- <form action="invia.php" method="post">
- <input type="text" name="frase" />
- <input type="submit" name="invio" value="INVIA" />
- </form>
- </body>
- </html>
- <?php /* invia.php */
- $socket = socket_create(AF_INET, SOCK_STREAM, 0);
- socket_connect($socket, '127.0.0.1' , 5000);
- socket_send($socket, $_POST["frase"], strlen($message), 0)
- socket_close($socket);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement