开发者

setting apache environment variable

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜