faqts : Computers : Programming : Languages : PHP : Common Problems

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

14 of 17 people (82%) answered Yes
Recently 9 of 10 people (90%) answered Yes

Entry

How can I send the message from my machine to another person who has logged in my web-page?

Mar 9th, 2000 11:59
Matt Gregory, Shachi,


You can't exactly do what you are asking.  You can send a message to a 
person logged into your site if you are running a JAVA applet (like a 
chat or IM client) on the page, but not via PHP.  PHP is only a server 
side processing script.  If the user's page refreshes or if they click 
on a link, and your message is stored in a database or text file 
checked by your script, you can send them a message as part of the page.