1.vi /etc/sysconfig/i18n
Centos5.5原来内容是:
//LANG=”en_US.UTF-8”
//SYSFONT=”latarcyrheb-sun16”
将内容改为
LANG=”zh_CN.GB18030”
LANGUAGE=”zh_CN.GB18030:zh_CN.GB2312:zh_CN”
SUPPORTED=”zh_CN.GB18030:zh_CN:zh:en_US.UTF-8:en_US:en”
SYSFONT=”lat0-sun16”
1.vi /etc/sysconfig/i18n
Centos5.5原来内容是:
//LANG=”en_US.UTF-8”
//SYSFONT=”latarcyrheb-sun16”
将内容改为
LANG=”zh_CN.GB18030”
LANGUAGE=”zh_CN.GB18030:zh_CN.GB2312:zh_CN”
SUPPORTED=”zh_CN.GB18030:zh_CN:zh:en_US.UTF-8:en_US:en”
SYSFONT=”lat0-sun16”
Smarty 中的 if 语句和 php 中的 if 语句一样灵活易用,并增加了几个特性以适宜模板引擎. if 必须于 /if 成对出现. 可以使用 else 和 elseif 子句. 可以使用以下条件修饰词:eq、ne、neq、gt、lt、lte、le、gte、ge、is even、is odd、is not even、is not odd、not、mod、div by、even by、odd by、==、!=、>、<、<=、>=. 使用这些修饰词时必须和变量或常量用空格格开。
[root@localhost httpd-2.4.7]# /usr/local/httpd/bin/apachectl start
AH00558: httpd: Could not reliably determine the server’s fully qualified domain name, using localhost.localdomain. Set the ‘ServerName’ directive globally to suppress this message
apache 启动出现这种错误的解决方法:
将 apache 的配置文件httpd.conf中的 ServerName 改成可用域名或如下配置
ServerName localhost:80
#./configure --prefix……检查编辑环境时出现:
checking for APR… no
configure: error: APR not found . Please read the documentation.
可以用./configure -help | grep apr 查看帮助。
--with-included-apr Use bundled copies of APR/APR-Util
--with-apr=PATH prefix for installed APR or the full path to apr-config
--with-apr-util=PATH prefix for installed APU or the full path to
1 | {pc:get sql=”select * from v9_picture_data where id = ‘$id’”} |