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

Trevor DeVore lists at mangomultimedia.com
Wed Feb 8 12:58:32 EST 2006


On Feb 8, 2006, at 9:06 AM, 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?

I wonder if there are any extra global vars set (environmental  
variables) when running as CGI?  Perhaps check that list and see if  
there are HTTP specific ones.


-- 
Trevor DeVore
Blue Mango Multimedia
trevor at mangomultimedia.com





More information about the use-livecode mailing list