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






Setting Environment and Configuration Variables

 
<?php

  echo $_ENV['COMPUTERNAME'] . "<br />"; 
  $_ENV['COMPUTERNAME'] = "Hello World!";
  echo $_ENV['COMPUTERNAME'] . "<br />"; 
  echo ini_get ('post_max_size');
  
  ini_set('post_max_size','200M');
?>
  
  








Related examples in the same category

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