performance - Keeping a live connection with php? -


I am working on a project, continuously pinging a php script for new data, so if I To understand it properly, it means that the PHP script being pinged is ended indefinitely. It works, but I'm guessing its biggest strength on the server, and is probably considered ugly and bad practice. Am I right about this?

Is there a way that I can keep alive for the script and use it to flush the material used in PPP's built buffering, but keep the script going for infinity some types Loop, so when new data is available, this output can be it is a bad idea too?

I'm just looking for input forms with more experience.

One last thing ...

Are there any other ways to continue the continuous flow of data (such as leaving techniques like Flash or Silverlight)?

If you have currently worked and have to stay on the job, then you can test against the load as expected in this application, Bad practice is not considered. If this works, then keeping it simple is not a crime. Whatever you are describing is going against the grain of the original model of the web, so you are entering an unstable area.

I advise you to check this technique. This what you want is most popular for inversion - the server constantly advances information on a page - but it clearly shows both ways Although your mileage can be different, I have heard good things as Wikipedia has described it:

In web development, Comet is a web application model and An innovation is an innovation in which long-time an HTTP request allows a web server to push the browser to push the data, the browser is clearly requesting the comet for several techniques to achieve this conversation. There is an umbrella term. All of these methods rely on features included in the browser, as opposed to non-default plugins, such as Javascript.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -