关于CentOS平台php加入pdo_mysql支持
环境:在linux 系统下安装好PHP+mysql +apache环境发现PHP没有支持pdo_mysql扩展于是决定重新编译PHP,其中mysql采用rpm方式安装
尝试:./configure --with-apxs2=/usr/local/apache/bin/apxs --with-iconv --with-oci8=instantclient,/usr /lib/oracle/10.2.0.1/client/lib --with-mysql=/usr/local/mysql --with-gd=shared --with-zlib-dir=/usr --enable-gd-native-ttf --with-freetype-dir=/usr/local/modules/freetype --with-ttf --with-jpeg-dir --with-png-dir --with-gd=/usr/local/modules/gd --with-jpeg-dir=/usr/local/modules/jpeg6 --with-zlib --enable-magic-quotes --enable-ftp --with-iconv --enable-mbstring --with-pdo-mysql=/usr/local/mysql
编译错误报告:Can't find mysql installation.
错误原因:采用rpm方式安装mysql,无法定位准确的mysql安装目录。
解决办法:下了一个免安装版mysql到Linux系统,解压后放入/usr/local/mysql,再次编译php成功。
重启apache,访问speedCms系统,系统报告错误:
Can't connect to local MySQL server through socket '/tmp/mysql.sock' (111)
经过查询,发现使用rpm安装模式的mysql其mysql.sock文件的具体位置在 /var/lib/mysql/mysql.sock
由于php程序默认查找/tmp/mysql.sock ,此文件又不存在,所以报错。
解决办法:执行以下命令建立链接,问题解决。
ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock
相关文档:
要使您的FCKeditor能够使用上传功能,您必须进行以下配制。
注意:FCKeditor不支持虚拟目录,您的路径设置都是针对网站根目录的绝对路径而言的。这点对于发布到远程网站目录的开发者极为不便,后面我们会对此进行讨论。
一、打开fckeditor\editor\filemanager\upload\php\config.php,找到代码$Config['Enabled'],将值 ......
If you want to put some big table in the pdf file, you may got the layout messy. One way to solve the problem is to change the paper size. In "includes/cpdf_adapter.cls.php", Change the size you used in the array to whatever you want.
One tip: Replace Url into Clickable link.
$tex ......
/*
>>> Author: 刘晨晖
>>> Date : 2009-07-05
>>> EMAIL :
huichengongzi@gmail.com
>>> 转载请注明出处,谢谢合作!
*/
配置php.ini文件 (以上传500M以下大小的文件为例)
查找以下选项并修改->
file_upload ......
以下是windows环境的配置:
一、进入apache的bin目录
运行
set OPENSSL_CONF= openssl.cnf
openssl req
-new -nodes -keyout server.key -out server.csr
然后出现:
Country Name (2 letter
code):使用国际标准组织(ISO)国码格式,填写2个字母的国家代号。中国请填写CN。
State or Provi ......
PHPChina资讯:Smarty是由Monte Ohrt和Andrei Zmievski写出的PHP模板引擎。它不同于其他的模板引擎,比如FastTemplate或者patTemplate,其中主要原因就是Smarty会将模板转化成PHP脚本,并剔除每次使用该模板时都会出现在解析环节里的用来控制和错误检验的附加码。这个功能使Smarty在大型应用和高流量网站上有优异的表现。
......