apache - Environment variables - htaccess and php -


i need little environment variables. after setup variable in .htaccess file this:

setenv statusv "online" 

how can change variable value permanently (global scope) using php. if change variable value this:

apache_setenv("statusv", "offline");  

or

putenv('statusv=offline'); 

variable changed , exists in session changed it.

what want forbid clients access files via direct url if environment variable set specific value.

i appreciate every , thank in advance.


Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

node.js - How to abort query on demand using Neo4j drivers -