title: "Do not Access Superglobal $_SERVER Array Directly" on Netbeans 7.4 for PHP
body: <p>Yes, a similar question was posted and answered correctly.
  <a href="https://stackoverflow.com/questions/19767894/warning-do-not-access-superglobal-post-array-directly-on-netbeans-7-4-for-php">Warning &quot;Do not Access Superglobal $_POST Array Directly&quot; on Netbeans 7.4 for PHP</a></p>
  
  <p>That post was helpful.  but it did not resolve my problem.</p>
  
  <p>I am not getting any OUTPUT in my browser.</p>
  
  <p>I applied all of the options exchanging $_POST with $_SERVER.</p>
  
  <p>My original code:</p>
  
  <pre><code>$user_ip = $_SERVER[ 'REMOTE ADDR'];
  </code></pre>
  
  <p>My code modified several ways as the other question/ answer suggests</p>
  
  <pre><code>user_ip = filter_input(INPUT_SERVER, 'REMOTE_ADDR');
  user_ip = filter_input_array(INPUT_SERVER, 'REMOTE_ADDR');
  </code></pre>
  
  <p>STILL NO OUTOUT</p>
  
  <p>Background.</p>
  
  <p>I am appending code after code in my index.php as I go thru these tutorials.</p>
  
  <p>I keep commenting out the previous code.</p>
  
  <p>I missed a few comments and at that point I actually DID HAVE OUTPUT</p>
  
  <pre><code>::1
  </code></pre>
  
  <p>What I expected as output was </p>
  
  <pre><code>127,0,0,1
  </code></pre>
  
  <p>When I commented the all of the code from the previous tutorial
  I no longer get any output.</p>
  
  <p>I am going thru a tutorial which is very good but he is using xampp.
  I am on a Mac and installed amp.
  Don't know if that matters.</p>
  
  <p>If you want to take a look, navigate to 
  thenewboston.com
  Tutorials
  Php
  Lesson 33
  <a href="http://thenewboston.org/watch.php?cat=11&amp;number=33" rel="nofollow noreferrer">http://thenewboston.org/watch.php?cat=11&amp;number=33</a>
  First minute or so in.</p>