Php > Miscellaneous
Using NetSend to comunicate across intranets
Using NetSend to comunicate across intranets if(!isset($_POST['submit'])){ show_form(); }else{ //get message if (isset($_POST['message'])){ $mess = escapeshellcmd($_POST['message']); }else{ echo "no message"; show_form(); die(); } //$ip is the ip of your friends machine...you could build a db table or array to use the name entry to find the ip if (isset($_POST['ip'])){ $ip = escapeshellcmd($_POST['ip']); }else{ echo "no ip"; show_form(); die(); } echo "NET SEND $ip $mess"; exec("NET SEND $ip $mess"); } function show_form() { ?>
IP
Message
} ?>
Php Codes
Algorithms
Arrays
Authentication
Calendar
Code Snippets
Programs
Content Manage
Contest Related
Cookies
Credit Cards
DBase Related
Databases
Date Time
Directories
E-Mail
Errors
File
File System
Forms
Handling
Graphics
HTML and PHP
Informix
Ingres
InterBase
LDAP
Look and Feel
Miscellaneous
MySQL
Other
PHP Classes
Searching
Navigation
Statistics
Strings
User Manage