Message to IP.

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
asterinex
Forum Commoner
Posts: 52
Joined: Thu Nov 25, 2004 7:01 am
Location: Belgium

Message to IP.

Post by asterinex »

Does Anyone if it is posiible to send a message to a screen , only for one user. Not by accessing de database, but just by sending a function or something . Maybe to an IP adress.

Like :


Send " Hallo" to IP 128.30.20.21 .


Or something ... !? :roll:
User avatar
phpScott
DevNet Resident
Posts: 1206
Joined: Wed Oct 09, 2002 6:51 pm
Location: Keele, U.K.

Post by phpScott »

php and database serverside
html, web browser, javscript clientside.

the two are don't interact without a refresh or submit.
you can if you want to use a hidden Iframe that keeps checking to see if a message has been sent to the person using javascript to keep refreshing the page.

or google [google]php +'instant messaging'[/google] to find a bunch of written scripts you could use or pull apart and see how they have done it.
asterinex
Forum Commoner
Posts: 52
Joined: Thu Nov 25, 2004 7:01 am
Location: Belgium

Post by asterinex »

Thanks, Can you explane what a iframe is . Is it a frame with specific attributes. Maybe you can give an example of an iFrame.
User avatar
phpScott
DevNet Resident
Posts: 1206
Joined: Wed Oct 09, 2002 6:51 pm
Location: Keele, U.K.

Post by phpScott »

check out http://www.w3schools.com/tags/tag_iframe.asp for an example of an iframe and what it can do.

Basically and Iframe load another document into your current page, it is more flexable then the framset as it is independent and doesn't require a framset page to control. just put it where you want in your document, set its source and presto the other page is loaded there in amogst you own content.
asterinex
Forum Commoner
Posts: 52
Joined: Thu Nov 25, 2004 7:01 am
Location: Belgium

Post by asterinex »

Thanks, I think that is the solution!
Post Reply