title: curl_exec() does not return simple string
body: <p>My code is the following.</p>
  
  <pre><code>&lt;?php
  
  $name= "Gustavo";
  $pass= "Palomino";
  
  $ch = curl_init();
  
  curl_setopt($ch,CURLOPT_URL, "https://web.njit.edu/~gep5/welcome.php");
  curl_setopt($ch,CURLOPT_POST, 1);
  curl_setopt($ch,CURLOPT_POSTFIELDS,
              http_build_query(array('name' =&gt; $name, 'pass' =&gt; $pass)));
  
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  
  $answer = curl_exec($ch);
  echo $answer;
  curl_close($ch);
  
  
  if ($answer=="ok")
  
     echo "logged in";
  else
    echo "login failed";
  ?&gt;
  </code></pre>
  
  <p>When I execute this code I get $answer to be ---- echo "ok"; ----- </p>
  
  <p>welcome.php is the following</p>
  
  <pre><code>&lt;?php
  echo "ok";
  ?&gt;
  </code></pre>
  
  <p>I thought that this should simply return a string --- ok --- to $answer from the first code.</p>
  
  <p>Apparently it returns the entire code of welcome.php</p>
  
  <p>Any help with this would be very appreciated.</p>