On Mon, 2006-08-28 at 22:59 +0200, Mr Stagiaire wrote:
> Thanks but how to generate the file (for exemple index.html) from a C
> program?
>
> "Don W. Carr" <doncarr%40gmail.com> a écrit :
>
> The easiest way to create web page that update dynamically based on real-time data,
> is to just periodically regenerate the file from a C program, and include the two
> shown below so that your browser automatically refreshes. I have done this with
>
> great success for tables, overlapping images that move, even just plain text.
Your reading too much into the solution proposed by Don.
What he is talking about is just periodically writing a new index.html
(or any .html file) from within your 'C' program. It really is a simple
as it sounds, just do an open, then some writes, then a close. Your 'C'
program will re-create the index.html file every so often.
You might want to put the file on a ramdisk, or your going to quickly
wear out the flash.
You can expand this solution by having a static index.html that displays
your change-able.html in a frame, etc.
--
David L. Martin
w0snj%40speakeasy.net
In a world without walls and fences - who needs Windows and Gates?