title: CURLOPT_FOLLOWLOCATION cannot be activated
body: <p>im having some problems with curls and i dont know how to solve them.</p>
  
  <p>the idea is to get a user's username and pw and post it into an external webpage.</p>
  
  <p><strong>Here is the code:</strong> </p>
  
  <pre><code>$ch = curl_init(); 
    curl_setopt( $ch, CURLOPT_URL, "https://sso.uc.cl/cas/login?service=https://portaluc.puc.cl/uPortal/Login"); // URL to post 
    curl_setopt ($ch, CURLOPT_POST, 1);
    curl_setopt ($ch, CURLOPT_POSTFIELDS,         "username=$usuario&amp;password=$pw");
    curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, 1);
    $result = curl_exec( $ch ); // runs the post 
    curl_close($ch);
    echo "Reply Response: " . $result; // echo reply response 
  </code></pre>
  
  <p><strong>here is the error:</strong> </p>
  
  <pre><code>Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set in /home/th000862/public_html/encuesta/login2.php on line 10
  </code></pre>
  
  <p>After that error, the user is not logged in into the external webpage.</p>