Advertisement
Guest User

Untitled

a guest
Dec 16th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.42 KB | None | 0 0
  1. <html>
  2.  
  3. <head></head>
  4.  
  5. <body>
  6.     <form action="invia.php" method="post">
  7.         <input type="text" name="frase" />
  8.         <input type="submit" name="invio" value="INVIA" />
  9.     </form>
  10. </body>
  11.  
  12. </html>
  13.  
  14. <?php /* invia.php */
  15.  
  16. $socket = socket_create(AF_INET, SOCK_STREAM, 0);
  17. socket_connect($socket, '127.0.0.1' , 5000);
  18. socket_send($socket, $_POST["frase"], strlen($message), 0)
  19. socket_close($socket);
  20.  
  21. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement