Page 1 of 1
Message to IP.
Posted: Fri Nov 26, 2004 4:02 am
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 ... !?

Posted: Fri Nov 26, 2004 5:01 am
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.
Posted: Fri Nov 26, 2004 5:12 am
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.
Posted: Fri Nov 26, 2004 6:07 am
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.
Posted: Fri Nov 26, 2004 6:12 am
by asterinex
Thanks, I think that is the solution!