title: CodeIgniter captcha image not working when online
body: <p>I'll try to be as specific as possible. I used codeigniter captcha helper to generate a captcha for user verification on my website, it is working great on ly localhost but when i uploaded the website online, the captcha was not showing anything, apparently, when i viewed it using developer tools the img tag containing the captcha image was not there at all.</p>
  
  <p>The code is:</p>
  
  <pre><code>$this-&gt;load-&gt;helper('captcha');
  $vals = array(
          'img_path' =&gt; './captcha/',
          'img_url' =&gt; base_url().'captcha/',
          'font_path' =&gt; './fonts/VeraSe.ttf',
          );
  
  $img = create_captcha($vals);
  $x = $this-&gt;session-&gt;set_userdata('captcha', $img['word']); 
  
  $data['image'] = $img['image'];
  $data['captcha1'] = $img['word'];
  $this-&gt;load-&gt;view('signup', $data);
  </code></pre>
  
  <p>and in the view:</p>
  
  <pre><code>&lt;?php echo $image; ?&gt;
  </code></pre>