Hello,
This may be more of a Linux question, but perhaps somebody knows the answer.
I can use getenv() to get environement variables, but I'm not sure where to set environment variables in linux so they can be seen from PHP.
I've tried setting my variable in /etc/profile but it still isn't available from PHP's getenv() function. I've even tried exec("myvar=hello"
;getenv("myvar"
; with no success.
Thanks,
-David
This may be more of a Linux question, but perhaps somebody knows the answer.
I can use getenv() to get environement variables, but I'm not sure where to set environment variables in linux so they can be seen from PHP.
I've tried setting my variable in /etc/profile but it still isn't available from PHP's getenv() function. I've even tried exec("myvar=hello"
Thanks,
-David