title: curl_setopt() CURLOPT_FOLLOWLOCATION issue with TCPDF
body: <p>I have moved one site to another web hosting. When i test on localhost all works fine but when i try it online, i receive the following:</p>
  
  <pre><code>curl_setopt() [&lt;a href='function.curl-setopt'&gt;function.curl-setopt&lt;/a&gt;]: 
      CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or 
      an open_basedir is set
  </code></pre>
  
  <p>when i try to generate a PDF file with TCPDF(the line 7542 is generating the error)</p>
  
  <pre><code>7534             if ($imsize === FALSE) {
  7535                 if (function_exists('curl_init')) {
  7536                     // try to get remote file data using cURL
  7537                     $cs = curl_init(); // curl session
  7538                     curl_setopt($cs, CURLOPT_URL, $file);
  7539                     curl_setopt($cs, CURLOPT_BINARYTRANSFER, true);
  7540                     curl_setopt($cs, CURLOPT_FAILONERROR, true);
  7541                     curl_setopt($cs, CURLOPT_RETURNTRANSFER, true);
  7542                     curl_setopt($cs, CURLOPT_FOLLOWLOCATION, true);
  </code></pre>
  
  <p>What can i do to avoid this?</p>