Page 1 of 1

PHP and Windows Messenger

Posted: Thu Apr 01, 2004 9:14 am
by davy2001
Is it possable to send an error message to another computer on a LAN?

Dave

Posted: Thu Apr 01, 2004 10:07 am
by pickle
I really don't think so. That would require one PHP connection being able to see data and send data to another PHP connection, which is a GAPING security issue. Why not send an email with the error message in it?

Posted: Thu Apr 01, 2004 10:24 am
by lostboy
Not thru straight php, but it should be possible to write a program in VB or VC that would make use of the TCP/IP APIs that control windows messaging. Then use PHP to make an EXEC call to the program, passing an IP and message...

Posted: Thu Apr 01, 2004 11:53 am
by feyd
Through a LAN it is possible if you're on a Windows based server. If the Messenging Service is active (normally is), you can do an exec with the net command. This service is different from Windows Messenger though. It's built into the OS Services and has been around since Win95.

type: "net send /?" in command line to see the options for it.

Although this would work, I'd do something more like what Pickle said and send an email.

Posted: Thu Apr 01, 2004 11:59 am
by PrObLeM
net send <ip address> message

Posted: Thu Apr 01, 2004 12:33 pm
by lostboy
way cool and an easier solution that to program the sockets yourself...

thanks

fyed

Posted: Thu Apr 01, 2004 5:32 pm
by m3mn0n
Pfft.

You guys never heard of the PHP Win32 API?

http://www.php.net/w32api