PHP and Windows Messenger

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
davy2001
Forum Commoner
Posts: 37
Joined: Tue Feb 24, 2004 5:59 pm

PHP and Windows Messenger

Post by davy2001 »

Is it possable to send an error message to another computer on a LAN?

Dave
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Post 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?
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
lostboy
Forum Contributor
Posts: 329
Joined: Mon Dec 30, 2002 8:12 pm
Location: toronto,canada

Post 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...
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
User avatar
PrObLeM
Forum Contributor
Posts: 418
Joined: Sun Mar 07, 2004 2:30 pm
Location: Mesa, AZ
Contact:

Post by PrObLeM »

net send <ip address> message
lostboy
Forum Contributor
Posts: 329
Joined: Mon Dec 30, 2002 8:12 pm
Location: toronto,canada

Post by lostboy »

way cool and an easier solution that to program the sockets yourself...

thanks

fyed
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

Pfft.

You guys never heard of the PHP Win32 API?

http://www.php.net/w32api
Post Reply