PDA

View Full Version : access ENV varible within php


adam
02-18-2012, 11:49 PM
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-25-2012, 11:51 PM
var_dump($_SERVER);

or maybe

var_dump($_ENV);

I don't quite remember the difference.

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