[eluser]Huji[/eluser]
This is the top part of my login.php controller:
<?php
class Login extends Controller {
function Login()
{
parent::Controller();
}
function index()
{
$this->load->plugin('captcha_pi');
$vals = array(
'word' => 'Random word',
'img_path' => './img/captcha/',
'img_url' => 'http://example.com/img/',
'font_path' => './system/fonts/texb.ttf',
'img_width' => '150',
'img_height' => 30,
'expiration' => 7200
);
$cap = create_captcha($vals);
I get this error message:
Message: imagettftext() [function.imagettftext]: Could not read font
Filename: plugins/captcha_pi.php
Line Number: 32
When I double click texb.ttf file, it says it is not a valid font (perhaps because I'm on Windows). What should I do?