比如在~/.bash_profile中定义了个环境变量MYENV=/home/lib,然后在test.php中echo getenv("MYENV"), 结果是为空,得不到环境变量。求教如何得到类似的环境变量?