title: Get %username% env. variable in PHP
body: <p>I'm trying to get the <strong>%username%</strong> in my intranet site to automatically log in the users but I'm not able to get this env. variable.</p>
  
  <p>I changed the "<strong>variables_order = "GPCS"</strong>" to "<strong>variables_order = "EGPCS"</strong>" in my PHP.ini.</p>
  
  <p>I displayed the _ENV variables in my code : <strong>global $_ENV; var_dump($_ENV);</strong> and i get this :</p>
  
  <pre><code>array(11) { ["APACHE_RUN_DIR"]=&gt; string(16) "/var/run/apache2" ["APACHE_PID_FILE"]=&gt; string(28) "/var/run/apache2/apache2.pid" ["JOURNAL_STREAM"]=&gt; string(11) "8:405225026" ["PATH"]=&gt; string(60) "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" ["INVOCATION_ID"]=&gt; string(32) "3e8569ce22454bd5b51b1ee4d8902385" ["APACHE_LOCK_DIR"]=&gt; string(17) "/var/lock/apache2" ["LANG"]=&gt; string(1) "C" ["APACHE_RUN_USER"]=&gt; string(8) "www-data" ["APACHE_RUN_GROUP"]=&gt; string(8) "www-data" ["APACHE_LOG_DIR"]=&gt; string(16) "/var/log/apache2" ["PWD"]=&gt; string(1) "/" }
  </code></pre>
  
  <p>But when I try this <strong>echo getenv("username");</strong>, I get nothing , do you know why ?</p>
  
  <p>Thank you !</p>