Setting a Php $_SERVER value ($_SERVER['something']) using Apache .htaccess

后端 未结 1 1025
既然无缘
既然无缘 2020-12-29 22:29

Is it possible using .htaccess or other apache powers to set a custom server value in the php array $_SERVER.

for example

if($_SERVER[\'is_special\']         


        
相关标签:
1条回答
  • 2020-12-29 23:20

    Try the SetEnv directive:

    SetEnv is_special foobar
    
    0 讨论(0)
提交回复
热议问题