title: XAMPP 1.7.7 in Windows 7 returns nothing using curl
body: <p>I have a problem working with</p>
  
  <pre><code>curl_getinfo
  </code></pre>
  
  <p>I have already checked the <strong>php.ini</strong> for <em>curl extension</em> and everything seems to be fine and inside <strong>phpinfo();</strong>, <em>curl</em> is enable so I know that It shouldn't have any problem.</p>
  
  <p>This function runs fine in my web server. It is my local machine with <strong>XAMPP 1.7.7</strong> that gives me a hard time. Could this be because of firwall settings of my laptop?</p>
  
  <p>Please note that the jpg file exists inside the Amazon s3 URL and I have checked the Amazon URL on the browser and it shows the image...</p>
  
  <p>/////////////////// Edited //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////</p>
  
  <p>here is my code which is a function or method inside a class:</p>
  
  <pre><code>public function pictureExistence($id){
  
      $url = AMAZON_S3_URL . $id . '.jpg';
  
      //var_dump($url);
      $ch = curl_init($url);
      curl_setopt($ch, CURLOPT_NOBODY, true);
      curl_exec($ch);
      //var_dump($ch);
      $code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
      //var_dump($code);
  
      if($code == 200){
          $status = true;
      }else{
          $status = false;
      }
      curl_close($ch);
      return $status;
  }
  </code></pre>