How does a stack know it's been opened from a cgi?

Dave Cragg dcragg at lacscentre.co.uk
Wed Feb 8 12:59:42 EST 2006


On 8 Feb 2006, at 17:06, Ken Ray wrote:

> Hi, I have a library that I want my CGI to 'start using', but it is
> important that the library know whether it is being loaded from a  
> CGI, or
> whether it's being loaded from a "normal" stack.
>
> What can a stack do to test whether it's being loaded from a CGI or  
> not?

The library stack will show the openStacks as empty when called from  
a CGI, assuming the cgi hasn't opened any other stacks. Could you use  
that?

Cheers
Dave



More information about the use-livecode mailing list