Reading Environment and Configuration Variables : _ENV « Utility Function « PHP






Reading Environment and Configuration Variables

 
<?php 
echo $_ENV['ProgramFiles'] . "<br />"; 

echo $_ENV['COMPUTERNAME'] . "<br />"; 
echo getenv("COMPUTERNAME") . "<br />"; 

echo ini_get ("post_max_size") . "<br />"; 


print_r (ini_get_all()); 
?>
  
  








Related examples in the same category

1.Setting Environment and Configuration Variables
2.Reading an environment variable, $_ENV['USER']
3.Reading another environment variable,$_ENV['HOME']