|
Posted by Norman Peelman on 01/26/08 01:15
Martin wrote:
> 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.
>
>
What about APC (Alternative PHP Cache)? Has functions for
storing/retrieving global server data/variables... take a look.
--
Norman
Registered Linux user #461062
[Back to original message]
|