Support > General Discussions

delete post please

(1/1)

RONB:
info not helpful to others, please delete post, thanks

Support:
Ron,

I normally set environment variables with the SYSTEM or EXECUTE SB command. Are you starting your CGI scripts using the scriba -c command to tell SB that the script is CGI based?


--- Quote ---CGI programs gain a great wealth of information from environment variables. This data is available to the ScriptBasic program via module functions. The CGI program is encouraged to use these functions instead of the function environ(). The reason to use these functions is that later versions of the CGI module may support ISAPI, NSAPI, FastCGI and other web server interface modes. Calling the function environ() to get the value of these variables will not work in that case, while calling the functions provided by the CGI module still works.
--- End quote ---

John

Update


--- Quote ---.htaccess files are reread upon every hit within that directory. In fact, the web server will look for these .htaccess files on every access to the web server.
--- End quote ---

If using Apache, you may be able to set your environment variable by creating a .htaccess file in the directory your script is running and add the following.

SetEnv HTMLDOC_NOCGI "1"

Support:
After my previous post I gave the .htaccess method a try and it worked fine. That should be a quick way to solve your issue.

In general, how are your adventures going with ScriptBasic?

Support:
Another way to set CGI environment variables is to specify them as either GET or as POST parameters in the http request.

Support:
Ron,

I'm trying to understand what you're after. I assumed that you're sending  a request to a non-SB page/script that is looking for a special environmental variable to be set. Can you be more specific what you're trying to accomplish?

John

P.S.

Thanks for your feedback about SB.

Navigation

[0] Message Index

Go to full version