Fatal error: Call to undefined function imagettftext() in /var/www/apev.cn/htdocs/include/captcha.class.php on line 66
缺少 imagettftext() 函數造成生成驗證碼失敗,解決辦法是安裝 freetype 並且重新編譯 php,並且帶上此參數。
make clean ./configure --with-gd \ --enable-gd-native-ttf \ --with-ttf \ --with-freetype-dir=/usr/lib/ \ --with-jpeg-dir=/usr/lib/libjpeg.so.62 \ --enable-exif \ make && make install