SVN on CentOS

Standard

1) Installation: The first thing to do is to install the packages I mentioned above. If you don't have Apache installed already, it'll go ahead and drag that down as well. [root@lucifer ~]# yum install mod_dav_svn subversion 2) Configurations: a) Apache: ... b) Subversion's Apache configs: [read more]

PHP分页函数

Standard

$sql="SELECT * FROM tb"; //取得总信息数 $result=mysql_query($sql); $total=mysql_num_rows($result); //调用pageft(),每页显示10条信息(使用默认的20时,可以省略此参数),使用本页URL(默认,所以省略掉)。 pageft($total,10,"http://www.yemaosheng.com/index"); //现在产生的全局变量就派上用场了: $result=mysql_query($sql." limit $firstcount,$displaypg");

Linux CVS配置

Standard

运行rmp -qa | grep "cvs"以确定系统已经安装有CVS Server 1)进入 /etc/xinetd.d 目录,编辑一个 cvspserver 的文件,文件内容如下: 2)修改 /etc/services 文件 3)创建 cvs 组和 cvs 用户 [read more]