这个应该是服务器的环境问题,解决办法是:
找到/uc_server/control/admin/seccode.php
include_once UC_ROOT.'lib/seccode.class.php'; $code = new seccode(); $code->code = $seccode; $code->type = 0; $code->width = 70; $code->height = 21; $code->background = 0; $code->adulterate = 1; //$code->ttf = 1;此处改成0 $code->ttf = 0; $code->angle = 0; $code->color = 1; $code->size = 0; $code->shadow = 1; $code->animator = 0; $code->fontpath = UC_ROOT.'images/fonts/'; $code->datapath = UC_ROOT.'images/'; $code->includepath = ''; $code->display();