安装Apache提示APR not found的解决办法

#./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

Read More

phpcms文件结构

主要目录部分

/admin 管理后台目录
– /skin/ 后台样式
– /templates/ 后台样式模板

/api api接口

/corpandresize 在线图片处理
– /css/ csss样式
– /images/ 图片
– /js/ 引用js文件
– /tmp/ 临时文件

Read More

PHPCMS的自增长标签

设置幻灯片的时候,需要用到自增长ID。

1
2
3
<div class="tt_pic"><img src="images/1.gif" /></div>
<div class="tt_pic"><img src="images/2.gif" /></div>
<div class="tt_pic"><img src="images/3.gif" /></div>

在对图片进行循环时,可以替换成{$n}.gif。

如果从2开始自增长:{php echo $n+1}

PHP拾贝

$_SERVER['DOCUMENT_ROOT']

$_SERVER['DOCUMENT_ROOT']指向了web服务器文档树的根。(E:/wamp/www/)


define defined

!defined('CURSCRIPT') && define('CURSCRIPT', '');
含义是:如果CURSCRIPT 没定义,就定义CURSCRIPT为空。

Read More