title: Postman giving error wrong server key even server key is correct?
body: <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;?php
  
  header_remove('Server');
  //header("Content-type: application/json");
  header("Access-Control-Allow-Origin: *");
  header("Content-Type: application/json; charset=UTF-8");
  require('assets/init.php');
  
  $api_versions      = array('1.0');
  $response_data     = array();
  $api_version       = (!empty($_GET['v']) &amp;&amp; in_array($_GET['v'],$api_versions)) ? PT_Secure($_GET['v']) : '';
  $api               = "api/v$api_version/api-v$api_version.php"; 
  
  if (empty($_POST['server_key']) || $_POST['server_key'] != $pt-&gt;config-&gt;server_key) {
      $response_data       = array(
          'api_status'     =&gt; '404',
          'errors'         =&gt; array(
              'error_id'   =&gt; '1',
              'error_text' =&gt; 'Wrong server key'
          )
      );
  
      echo json_encode($response_data, JSON_PRETTY_PRINT);
      exit();
  }
  
  
  if (!file_exists($api)) {
      $response_data       = array(
          'api_status'     =&gt; '404',
          'errors'         =&gt; array(
              'error_id'   =&gt; '1',
              'error_text' =&gt; 'Error: 404 API Version Not Found'
          )
      );
  
      echo json_encode($response_data, JSON_PRETTY_PRINT);
      exit();
  }
  
  
  
  $type          = (!empty($_GET['type'])) ? PT_Secure($_GET['type']) : '';
  $type          = ($_GET['type']) ? PT_Secure($_GET['type']) : '';
  $applications  = array('phone');
  $application   = (!empty($_GET['platform']) &amp;&amp; in_array($_GET['platform'], $applications)) ? PT_Secure($_GET['platform']) : 'phone';
  require_once   "$api";
  
  
  echo json_encode($response_data, JSON_PRETTY_PRINT);
  exit();
  
  $db-&gt;disconnect();
  unset($pt);
  ?&gt;</code></pre>
  </div>
  </div>
  </p>
  <p><a href="https://i.stack.imgur.com/DdA4t.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DdA4t.png" alt="enter image description here" /></a></p>
  <p>I have set the correct server key for API and when I fetch data through postman it gives me an error wrong server key even my key is correct. I have completely studied the code line by line there is no error in the code about hours and hours I search but I did not get any solution.</p>