开发者

setting apache environment variable

开发者 https://www.devze.com 2023-01-12 13:40 出处:网络
My hosting environment using Server version: Apache/2.2.14 (Unix) and I am modifying ./usr/local/apache/conf/httpd.conf to set environment variable and res开发者_开发问答tarting the server .

My hosting environment using Server version: Apache/2.2.14 (Unix) and I am modifying ./usr/local/apache/conf/httpd.conf to set environment variable and res开发者_开发问答tarting the server .

SetEnv XML-RPC-IPs 193.45.32.21

I did set it as a first entry in the file and restarted the server . But even restarting if I try to print it is still getting me black , Am I missing any thing ?

echo "My IP address ".$_SERVER['XML-RPC-IPs'];

Thanks for your help Regards Kiran


Environmental Variables are located in $_ENV superglobal.

What you are looking for is echo "My IP address ".$_ENV['XML-RPC-IPs'];

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号