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

J. Landman Gay jacque at hyperactivesw.com
Wed Feb 8 13:03:41 EST 2006


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?

Does your cgi receive parameters via "post" or "get"? If so, you could 
set one of those as an indicator. When a "normal" stack opens, the param 
would be empty.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com



More information about the use-livecode mailing list