0
저는 codeigniter captcha 도우미를 사용하고 있습니다. 나는 manual을 따라 갔고 로컬 서버에서 잘 작동합니다. 하지만 내가 호스팅 서버로 이동하면 더 이상 작동하지 않습니다. 문제를 추적 해본 결과 내 captcha 디렉토리 경로 "./captcha/"이 디렉토리로 인식되지 않았습니다. 그게 뭐가 잘못 됐니? 내 로컬 서버에서와 동일하게 "./"은 내 루트 디렉토리를 가리켜 야합니다. 내가 잘못?./my/path/ 호스팅 서버의 디렉토리로 인식되지 않습니다.
protected function captcha($font_size,$width,$height,$exp)
{
$vals = array(
'img_path' => './captcha/',
'img_url' => base_url().'/captcha/',
'font_path' => './fonts/AntykwaBold.ttf',
'font_size' => $font_size,
'img_width' => $width,
'img_height' => $height,
'expiration' => $exp
);
if ($cap = create_captcha($vals)){
$data = array(
'captcha_time' => $cap['time'],
'ip_address' => $this->input->ip_address(),
'word' => ($cap['word'])
);
$query = $this->db->insert_string('captcha', $data);
$this->db->query($query);
return $cap;
} else {
return false;
}
}
죄송하지만 여전히 작동하지 않습니다. 다른 생각? – fembb