.php / Linux / MySQL / C /Netscape 4.79 - Automatic Browser Refresh
am 02.09.2007 16:17:01 von philbo30
I have data processing that takes place via an application written in
C. I also have a .php webpage that displays a chart of the results via
the Netscape 4.79 browser. Currently, manual intervention is required
to refresh the web page and show the process results. I need to fully
automate this process.
In a nutshell, the browser window needs to be automatically refreshed
as soon as my application completes its processing. In other words,
the application gets a new last step, the web-page refresh.
I suspect that this might be a call to a Netscape function, but it
might be possible with .php as well. Thoughts?
Re: .php / Linux / MySQL / C /Netscape 4.79 - Automatic Browser Refresh
am 02.09.2007 16:21:59 von luiheidsgoeroe
On Sun, 02 Sep 2007 16:17:01 +0200, philbo30 wrote:
> I have data processing that takes place via an application written in
> C. I also have a .php webpage that displays a chart of the results via
> the Netscape 4.79 browser. Currently, manual intervention is required
> to refresh the web page and show the process results. I need to fully
> automate this process.
>
> In a nutshell, the browser window needs to be automatically refreshed
> as soon as my application completes its processing. In other words,
> the application gets a new last step, the web-page refresh.
>
> I suspect that this might be a call to a Netscape function, but it
> might be possible with .php as well. Thoughts?
Not possible using only PHP (well, at least not when the UA & the HTTP
server aren't on the same box). A kludgy meta refresh (nor recommended) or
javascript would be needed. You'd poll for the 'last step done' to the
server, and if it gets a 'true' the whole page will be refreshed.
--
Rik Wasmus
Re: .php / Linux / MySQL / C /Netscape 4.79 - Automatic Browser Refresh
am 02.09.2007 22:15:12 von ELINTPimp
On Sep 2, 10:17 am, philbo30 wrote:
> I have data processing that takes place via an application written in
> C. I also have a .php webpage that displays a chart of the results via
> the Netscape 4.79 browser. Currently, manual intervention is required
> to refresh the web page and show the process results. I need to fully
> automate this process.
>
> In a nutshell, the browser window needs to be automatically refreshed
> as soon as my application completes its processing. In other words,
> the application gets a new last step, the web-page refresh.
>
> I suspect that this might be a call to a Netscape function, but it
> might be possible with .php as well. Thoughts?
Does the C application get triggered by the web interface? Such as,
the user wants to do the processing and initiates it though a form
button or something of the sort? If so, perhaps you could use PHP to
initiate the data processing, tell the C application to run through
CLI, and return the results in one fell swoop?