From: Denis McMahon on
On 09/08/10 03:19, goldtech wrote:

> How can I catch stderr and show it on the web page to a user? In
> roughly real-time?

Catching the output of stderr from an exec'd server side application is
way outside the scope of javascript.

> If you could link me or give me an idea of the way I will delve into
> Javascript and learn how. Thanks.

Dynamically updating something on a web page on a request / response
basis can be achieved with "AJAX" (Asynchronous Javascript And XML)
using the javascript XMLHTTPRequest (xhr).

Googling something like "ajax server push" might find discussions of
techniques that can be used with ajax to emulate server side push.

Rgds

Denis McMahon
From: Denis McMahon on
On 09/08/10 11:13, rf wrote:

> You could, however, provide some more information on what exactly what you
> are attempting to do.

The impression I got was that he wants php to kick off some external
program on the server in response to a request, then send a "job in
progress" response page to the client, then update that page on the
client with progress messages in response to progress output on the
server from his external program.

He might be able to set up polls with AJAX from the client to the server
to get the progress state, if his server can handle feeding that into
php somehow, but I've never tried to call ffmpeg from php so I don't
know how easy / hard that might be.

I've also never tried to set up polling AJAX, as opposed to user driven
client side event based AJAX.

So although I think I understand broadly what he's trying to do, I have
no idea on the implementation details.

Rgds

Denis McMahon