I'm having trouble using getenv() in my PHP script. I've set the environment variable in my bash session:
MYPATH=~/some/kind/of/path
I've verified it's working with:
echo $MYPATH
My question:
Why is getenv( 'MYPATH' ) returning false when I use it in my PHP web script? I'd expect /home/user/some/kind/of/path to be returned.
