Web Servers

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
sumesh
Forum Newbie
Posts: 1
Joined: Thu Oct 02, 2003 5:01 am

Web Servers

Post by sumesh »

Hi

Is there any way to send a message to a client visiting a site
or
send a message from the server to the client browser
or
listen to the webser using some scripts

Thz
Sumesh
User avatar
Derfel Cadarn
Forum Contributor
Posts: 193
Joined: Thu Jul 17, 2003 12:02 pm
Location: Berlin, Germany

Re: Web Servers

Post by Derfel Cadarn »

sumesh wrote: Is there any way to send a message to a client visiting a site
Isn't that just a javascript-popup what you mean here?
sumesh wrote:send a message from the server to the client browser
**the same as above?**
sumesh wrote:listen to the webser using some scripts
I don't know what you mean by this...sorry
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

you can't do that with http.
  1. client --request-->server
  2. client <--response-- server
for each request there's exactly one response. After this is delivered the connection's done.
listen to the webser using some scripts
java applets usually are allowed to connect a socket to the server they came from
Or you let the page refresh after a certain interval e.g. by

Code: Select all

<META HTTP-EQUIV="Refresh" CONTENT="20; URL=http://your.serv.er/your/script.php">
Post Reply