Monte Goulding wrote/ schreef:

> I can't see how you can do what you are trying to do there Sjoerd because a
> snapshot creates an image from an area of the screen.
Well, I was planning to make a stack which takes a number from a
counter.txt. file, adds 1 to it, puts it in a field, takes a snapshot of it,
and exports it, so that the web client sees it. But, as Andu said (and I
just learned) the taking of the snapshot is not possible if the engine
doesn't have a UI, which is mostly the case at web servers, because graphics
take unwanted system resources.

> Wouldn't it be simpler to use a set of 10 images (0 to 9) and have a number
> of calls (say 6 if you think you will get over 99,000 visitors) to the same
> cgi with different parameters ie <img
> src="cgi-bin/counter.cgi?position=1000"/><img
> src="cgi-bin/counter.cgi?position=100"/> etc
> 
> Then in your cgi return the correct image of the number you need for the
> position queried.
> 
> Please note I haven't ever done this but I assume if would work.
Yes, and I think this even is the only way to do it. I would have a zero by
zero or white fixed image, generated by a cgi script which just adds 1 to a
counter file, and a cgi script which shows the wanted decimal of the
counter.

Andu wrote/ schreef:

> No.You are missing the basics: in order to open a stack or a standalone
> the computer on which it is running must have the UI working (that is
> have a desktop active). Servers usually don't use UI for regular
> operation since it uses resources un necessarly which is why we use the
> ..mt scripts which can execute without UI.

Thanks Andu and Monte! Learned a lot!

Regards,
Sjoerd


Archives: http://www.mail-archive.com/[email protected]/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.

Reply via email to