I am trying to make a persistent connection to a weburl and read the response from the url every moment (Connection will not be disconnected).
Looking for something like this.
connection = connect("http://www.ibm.com?id=test");
while(connection has response){
//do something with the response until the connection in forcefully closed
}
I had a look into pecl_http library. But this will not serve the purpose. Can we use curl to make a persistent connection to a web url?
Or is it something which is not supported in php?