GD Library enabled
Linux and GD libraries are enabled, which is installed by yum install.
[Root @ VM-DEV-1 ~] # Rpm-qa | grep php
Php53u-pdo-5.3.28-5.ius.centos5
Php53u-cli-5.3.28-5.ius.centos5
Php53u-fpm-5.3.28-5.ius.centos5
Php53u-xmlrpc-5.3.28-5.ius.centos5
Php53u-gd-5.3.28-5.ius.centos5
Php53u-common-5.3.28-5.ius.centos5
Php53u-5.3.28-5.ius.centos5
Php53u-xml-5.3.28-5.ius.centos5
Php53u-mysql-5.3.28-5.ius.centos5
However, the verification code is not displayed.
Reply to discussion (solution)
You cannot execute the verification code file separately.
The verification code is an image and must be referenced with the img Mark
The verification code generator program cannot have any output except the php tag, including the BOM header.
The verification code generator program cannot have echo, print, and other statements with text output, and of course there cannot be any errors.
Comment out the header statement and directly access the verification code generation program in the browser until there is no error.
You cannot execute the verification code file separately.
White
The verification code is an image and must be referenced with the img Mark
The verification code generator program cannot have any output except the php tag, including the BOM header.
The verification code generator program cannot have echo, print, and other statements with text output, and of course there cannot be any errors.
Comment out the header statement and directly access the verification code generation program in the browser until there is no error.
This is the newly installed program. it's a good local program. if linux doesn't work, it's just a different environment.
Open the error prompt. If not, comment out the header to see what error is reported.
Open the error prompt. If not, comment out the header to see what error is reported.
What header is added with error_reporting (E_ALL); ini_set ("display_errors", "On"); this is reported when you access the verification code php.
Warning: _ 08_Verification_Code: CreateImage (): It is not safe to rely on the system's timezone settings. you are * required * to use the date. timezone setting or the date_default_timezone_set () function. in case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. we selected 'Asia/Chongqing 'for 'cst/8.0/no DST' instead in/data/www/syslog/logs on line 252 Fatal error: Call to undefined function mb_convert_encoding () in/data/www/syslog/teapi.jysq.cn/cmsauto/include/verification_code.php on line 252
1. set the time zone in php. ini or use date_default_timezone_set.
2. you must install the php-mbstring library file to use the mb_series functions. Run $ sudo yum install php-mbstring to install the SDK.
1. set the time zone in php. ini or use date_default_timezone_set.
2. you must install the php-mbstring library file to use the mb_series functions. Run $ sudo yum install php-mbstring to install the SDK.
1. set the time zone in php. ini or use date_default_timezone_set.
2. you must install the php-mbstring library file to use the mb_series functions. Run $ sudo yum install php-mbstring to install the SDK.
1. set the time zone in php. ini or use date_default_timezone_set.
2. you must install the php-mbstring library file to use the mb_series functions. Run $ sudo yum install php-mbstring to install the SDK.
Although 3Q is not the command, the mbstring library is not loaded.