anubhagar...@gmail.com wrote:
what i hav to do is i have to retrieve data from web services
aftter every 3 seconds and then i have to move my graph in forward
direction. so that new data can be displayed in the futher incoming
graph.
More clearly I have to draw a graph in php just like the graphs that
are displayed for ECG or for any heart disorder.
Please give me a clear idea.
So that i can make it early because i am a newbie to php.
Web service is a very poor choice of solution for this purpose.
Given that you require data acquisition every three seconds, you
should consider an approach that does not depend on HTTP. If
you use a Web service, your client will have to open a new
connection to the server every three seconds, transmit a request,
and receive a response. A better solution (for example, based
on sockets) would be for the client to establish the connection
once and keep listening for server output. This means that the
client would have to run continuously and, therefore, shouldn't
be a script of any kind. Consider a Java applet or a standalone
executable program...
Cheers,
NC