日期:2014-05-17 浏览次数:20608 次
作者:zhanhailiang 日期:2013-03-04
首先下载最新版vld扩展:
~/public_html/php-5.3.13/ext> wget http://pecl.php.net/get/vld-0.11.2.tgz ~/public_html/php-5.3.13/ext> tar zxvf vld-0.11.2.tgz ~/public_html/php-5.3.13/ext> cd vld-0.11.2/
接下来编译安装vld扩展:
~/public_html/php-5.3.13/ext/vld-0.11.2> phpize ~/public_html/php-5.3.13/ext/vld-0.11.2> ./configure --with-php-config=/usr/local/services/php/bin/php-config --enable-vld ~/public_html/php-5.3.13/ext/vld-0.11.2> make ~/public_html/php-5.3.13/ext/vld-0.11.2> sudo make install Installing shared extensions: /usr/local/services/php/lib/php/extensions/no-debug-non-zts-20090626/
最后将生成的vld.so复制到extension_dir目录下:
~/public_html/php-5.3.13/ext/vld-0.11.2> cd /usr/local/services/php/lib/php/extensions/no-debug-non-zts-20090626/ /usr/local/services/php/lib/php/extensions/no-debug-non-zts-20090626> sudo cp vld.so /usr/local/services/php/extensions/
然后修改php.ini文件,添加如下配置:
extension=vld.so
接下来创建test.php文件:
<?php $a