Re: A better way to handle real-time data?



In article <s43kp3tk9m7cube7iibibd5tqr3i4mn7t2@xxxxxxx>,
martinvalley@xxxxxxxxxxx says...
I have a series of php scripts that provide the user interface to an
industrial automation program.

One of the scripts serves out a page which displays some data, some
of which is constantly changing. On that page, I have some AJAX code
running that frequently requests fresh data and displays it
(frequently means about once a second).

When the php script that services the AJAX requests receives one, it
passes a request of its own over to the main process (via a socket)
which responds with some data which the script then sends out to the
browser page.

This all works fine but I'm concerned about the load this exchange of
data places in the main process.

What I'm wondering is: would it be possible that I could have my main
process send its data (in real time) to "something" in the php system
such that the php script could access this data much like it accesses
its own global variables? IOW, the script would have immediate access
to the values instead of having to request them from the main process.

Please understand that all of this activity is running on one computer
and this is all confined to an inTRAnet (there's no internet access
involved). And, this one computer is entirely under my control. I am
free to do what ever needs to be done with regards to php
configuration, security settings, etc.

Any recommendations?

Thanks.




Seriously - under no circumstances whatsoever use PHP in such an
environment.


I'm not going to explain - just don't.

.



Relevant Pages

  • Re: [PHP] PHP console script vs C/C++/C#
    ... My script is taking a longer time to execute than I want. ... I prefer to write in PHP because that is what I know best. ... This is why I am thinking about rewriting my whole script in a C language. ... Perhaps there are different methods I could be using to speed up execution. ...
    (php.general)
  • Re: How to Add a Feeback Form
    ... I saw nothing in that script that indicates where the form is e-mailed to so ... Greg Maxey/Word MVP ... PHP or not. ... have the support available yet. ...
    (microsoft.public.frontpage.programming)
  • How best to show PHP source? (was: One page, multiple submit buttons)
    ... script to add to the top of a PHP script to enable showing its ... Maybe anybody submitting their own PHP code for critique here ... Anything posted to a newsgroup is a "snapshot" of what the ... there ought to be a FAQ for this ...
    (comp.lang.php)
  • Re: [PHP] PHP console script vs C/C++/C#
    ... My script is taking a longer time to execute than I want. ... I prefer to write in PHP because that is what I know best. ... thinking about rewriting my whole script in a C language. ... execution of the code. ...
    (php.general)
  • Email form script
    ... I have a web form that posts to a .php ... who cannot run .php on their server. ... Or does anyone have a .asp script that will ... Thank you for choosing FormToEmail by FormToEmail.com ...
    (microsoft.public.scripting.jscript)