摘要: 解决php configure: error: Cannot find ldap libraries in /usr/lib.错误错误说明今天在centos 6.3 64位版本上安装PHP5.4.3时在./configure 步骤的时候出现了下面错误configure: error: Cannot ... 阅读全文
posted @ 2014-11-14 10:54 geniusxjq 阅读(809) 评论(0) 推荐(0) 编辑
摘要: PHP编译选项PHP安装./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-mysql=/usr/local/mysql --with-mysqli=/usr/bin/mysql_... 阅读全文
posted @ 2014-11-14 10:42 geniusxjq 阅读(518) 评论(0) 推荐(0) 编辑
摘要: PHP添加mcrypt扩展模块系统环境:CentOS6.3APACHE:httpd-2.4.2PHP:php-5.3.21一.安装mcrypt1.下载Libmcrypt,mhash,mcrypt安装包libmcrypt-2.5.8.tar.gz# wget http://sourceforge.ne... 阅读全文
posted @ 2014-11-14 10:30 geniusxjq 阅读(3416) 评论(0) 推荐(0) 编辑
摘要: 无需重新编译php加入ftp扩展的解决方法本文为大家介绍无需重新编译php加入ftp扩展的方法,有需要的朋友可以参考下首先,进入源码目录cd php-5.2.13/ext/ftp#运行phpize生成configure/usr/local/php/bin/phpize#编译,指定php-config... 阅读全文
posted @ 2014-11-14 10:27 geniusxjq 阅读(289) 评论(0) 推荐(0) 编辑
摘要: 安装和使用php的mcrypt扩展PHP程序员们在编写代码程序时,除了要保证代码的高性能之外,还有一点是非常重要的,那就是程序的安全性保障。PHP除了自带的几种加密函数外,还有功能更全面的PHP加密扩展库Mcrypt和Mhash。其中,Mcrypt扩展库可以实现加密解密功能,就是既能将明文加密,也可... 阅读全文
posted @ 2014-11-14 10:12 geniusxjq 阅读(7776) 评论(0) 推荐(0) 编辑
摘要: 几个有用的PHP.ini配置项-路径和目录路径和目录1、include_path = string作用域:PHP_INI_ALL默认值:NULL此参数指定的路径是include()、require()和fopen_with_path()等函数使用的基本路径。若存在多个目录,用分号分隔。2、doc_r... 阅读全文
posted @ 2014-11-14 09:46 geniusxjq 阅读(1471) 评论(0) 推荐(0) 编辑
摘要: apachemod_speling.so 忽略URL大小写(自动纠错)打开配置文件 httpd.conf加入LoadModulespeling_modulemodules/mod_speling.so在 加入CheckSpelling on如:CheckSpelling on //开启Spelin... 阅读全文
posted @ 2014-11-14 09:43 geniusxjq 阅读(505) 评论(0) 推荐(0) 编辑
摘要: PHP运行出现Notice : Use of undefined constant 的解决办法Notice: Use of undefined constant ALL_PS - assumed 'ALL_PS' in E:\Server\vhosts\www.lvtao.net\global.ph... 阅读全文
posted @ 2014-11-14 09:33 geniusxjq 阅读(352) 评论(0) 推荐(0) 编辑
摘要: Parse error: syntax error, unexpected end of file in *.php on line *解决方法这篇文章主要介绍了PHP错误Parse error: syntax error, unexpected end of file in test.php on... 阅读全文
posted @ 2014-11-14 09:17 geniusxjq 阅读(2503) 评论(0) 推荐(0) 编辑
摘要: apache 单独生成模块一般这种模块都是后期自己去生成的,比如一般在安装apache时都会--enable-so,允许动态加载模块。这个模块你可以这样去生成。1、下载一个与当前使用的apache一样版本的安装包。2、解压安装包,然后进入其目录#cd /tmp/httpd-2.2.11/module... 阅读全文
posted @ 2014-11-14 08:53 geniusxjq 阅读(159) 评论(0) 推荐(0) 编辑