in reply to Re^2: How to execute web code on server start only?in thread How to execute web code on server start only?
You cannot set (global) environment variables from within a CGI script. Please read this.