真实的国产乱ⅩXXX66竹夫人,五月香六月婷婷激情综合,亚洲日本VA一区二区三区,亚洲精品一区二区三区麻豆

成都創(chuàng)新互聯(lián)網(wǎng)站制作重慶分公司

php編譯gd支持驗證碼登陸

問題是腳本編譯的php不支持gd,不能生成動態(tài)的驗證碼?

成都創(chuàng)新互聯(lián)專業(yè)提供成都主機托管四川主機托管成都服務器托管四川服務器托管,支持按月付款!我們的承諾:貴族品質、平民價格,機房位于中國電信/網(wǎng)通/移動機房,移動服務器托管服務有保障!

最終的解決辦法是:

1.確定gd,jpeg,png,freetype包都已經(jīng)安裝(基于centos6.7 yum安裝)

[root@mcd nginx+php1.9]# rpm -qa | grep jpe

libjpeg-turbo-1.2.1-3.el6_5.x86_64

libjpeg-turbo-1.2.1-1.el6.x86_64

openjpeg-libs-1.3-11.el6.x86_64

libjpeg-turbo-devel-1.2.1-3.el6_5.x86_64

[root@mcd nginx+php1.9]# rpm -qa | grep png

libpng-1.2.49-2.el6_7.x86_64

libpng-devel-1.2.49-2.el6_7.x86_64

libpng-1.2.49-1.el6_2.x86_64

[root@mcd nginx+php1.9]# rpm -qa | grep freetype

freetype-devel-2.3.11-17.el6.x86_64

freetype-2.3.11-17.el6.x86_64

[root@mcd nginx+php1.9]# rpm -qa | grep gd

gdb-gdbserver-7.2-60.el6.x86_64

gdbm-1.8.0-38.el6.x86_64

eggdbus-0.6-3.el6.x86_64

gdm-plugin-smartcard-2.30.4-39.el6.x86_64

gd-devel-2.0.35-11.el6.x86_64

gd-2.0.35-11.el6.x86_64

gdm-2.30.4-39.el6.x86_64

gdb-7.2-60.el6.x86_64

gdm-libs-2.30.4-39.el6.x86_64

gdk-pixbuf2-2.24.1-6.el6_7.x86_64

gdb-7.2-83.el6.x86_64

gdbm-devel-1.8.0-38.el6.x86_64

gdm-plugin-fingerprint-2.30.4-39.el6.x86_64

gdbm-1.8.0-36.el6.x86_64

gdb-gdbserver-7.2-83.el6.x86_64

gdm-user-switch-applet-2.30.4-39.el6.x86_64

gdb-7.2-90.el6.x86_64

php-gd-5.3.3-48.el6_8.x86_64

gdk-pixbuf2-devel-2.24.1-6.el6_7.x86_64

2.編譯安裝,注意標紅的字體

./configure --prefix=/opt/php --with-config-file-path=/opt/php/etc/php5 --with-MySQL=mysqlnd --with-pdo-mysql=mysqlnd --with-iconv-dir --with-zlib --with-libxml-dir --enable-xml --enable-magic-quotes --enable-safe-mode --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --enable-mbregex --enable-fpm --enable-force-cgi-redirect --enable-mbstring --with-mcrypt --enable-ftp --with-gd--with-openssl --with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --without-pear --with-gettext --with-mime-magic --with-freetype-dir --with-jpeg-dir --with-png-dir 

make

make install

3.phpinfo看到結果

gd

GD Supportenabled
GD Versionbundled (2.1.0 compatible)
FreeType Supportenabled
FreeType Linkagewith freetype
FreeType Version2.5.0
GIF Read Supportenabled
GIF Create Supportenabled
JPEG Supportenabled
libJPEG Version6b
PNG Supportenabled
libPNG Version1.2.49
WBMP Supportenabled
XBM Supportenabled

生成動態(tài)碼的php頁面正常顯示

php編譯gd支持驗證碼登陸


當前題目:php編譯gd支持驗證碼登陸
地址分享:http://weahome.cn/article/pgppdg.html

其他資訊

在線咨詢

微信咨詢

電話咨詢

028-86922220(工作日)

18980820575(7×24)

提交需求

返回頂部