title: Undefined variable: $http_response_header
body: <p>I am trying to get a ticker script working but I get</p>
  
  <blockquote>
    <p>Undefined variable: http_response_header</p>
  </blockquote>
  
  <p>error. I googled and found out that $http_response_header is global and built into php then why do I get this error. I am using wamp with PHP 5.4 installed. Here is my code:</p>
  
  <pre><code>$url="https://data.mtgox.com/api/2/BTCCAD/money/ticker";
  $json = @file_get_contents($url);
  
  //check for errors
  if (strpos($http_response_header[0], "200")) {
    // On success, decode JSON
    $data = json_decode($json);
  </code></pre>
  
  <p>Thanks
  Ahmar</p>