|
From: | Zheng, Wendy |
Subject: | [Cgicc-help] How to get system environment variable |
Date: | Fri, 28 Aug 2015 06:29:44 +0000 |
Hi expertise, I’m trying to read system environment variable from my cgi application. I try following methods, but it doesn’t work. Does anyone know how to do it? 1. char *family = getenv ("MY_FAMILY"); if (family != NULL) { SERVICE_DEBUG(family); } else { SERVICE_DEBUG("Family is null"); } 2. CgiInput input; string family = input.getenv("MY_FAMILY"); SERVICE_ERROR("MY_FAMILY=" << family); From the document of CgiEnvironment
http://www.gnu.org/software/cgicc/doc/classcgicc_1_1CgiEnvironment.html , it looks like we should be able to get the system environment variable. But I can’t find a way to do it. Thanks, Wendy |
[Prev in Thread] | Current Thread | [Next in Thread] |