我有以下代碼,但我得到的是斷開的鏈接!我已經安裝了GD庫和適當的字體!但沒有任何工作,所以如何在zendframework中使用圖像驗證碼而不會斷鏈,出了什麼問題?在zend框架captcha圖像
$captcha = new Zend_Form_Element_Captcha('Captcha',array(
'captcha' => array('captcha' => 'Image', 'wordLen' => 6,
'timeout' => 300, 'width' => 300, 'height' => 100,
'imgUrl' => '/captcha',
'imgDir' => APPLICATION_PATH . '/../public/captcha',
'font' => APPLICATION_PATH . '/../public/fonts/LiberationSansRegular.ttf')));
//對不起
哪裏是代碼??? – Balanivash
@sam,請張貼你提到的代碼,否則沒有人能夠幫你糾正它;) – mingos
你看過你的錯誤日誌嗎?此外,您可以通過右鍵單擊和查看來查看圖像。通常這會給你提示問題是什麼。更多細節將會有所幫助。 – David