PDA

View Full Version : access ENV varible within php


adam
02-19-2012, 12:49 AM
Hi,

I need to access the ENV variable that is passed around. Can I access this via PHP? Can I, in a PHP script access the ENV variable and print some of its attributes? If so, can anyone provide some code on how to do this? Thanks.

nam
02-26-2012, 12:51 AM
var_dump($_SERVER);

or maybe

var_dump($_ENV);

I don't quite remember the difference.

adam
02-29-2012, 08:35 PM
thanks, that was helpful. The _ENV was empty, buthe _SERVER variable did give me some good info. Thanks!