On 2/8/06 11:58 AM, "Trevor DeVore" <[EMAIL PROTECTED]> wrote:

> 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.

Yup, that did it... there's a whole slew of globals that don't exist when
running in a "normal" stack. I'm picking "$HTTP_HOST" to check for, since
it's likely that will always be in "the globals".

Thanks, Trevor!


Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: [EMAIL PROTECTED]

_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to