2008-05-29 10:39:00
$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”);
[显示全文]
2008-05-29 09:59:08 评论:1
运行rmp -qa | grep “cvs”以确定系统已经安装有CVS Server
1)进入 /etc/xinetd.d 目录,编辑一个 cvspserver 的文件,文件内容如下:
2)修改 /etc/services 文件
3)创建 cvs 组和 cvs 用户
[显示全文]
2008-05-29 09:45:45 评论:1
配置文件 vi /etc/crontab
第1列分钟1~59
第2列小时1~23(0表示子夜)
第3列日1~31
第4列月1~12
第5列星期0~6(0表示星期天)
第6列要运行的命令
下面是crontab的格式:
分 时 日 月 星期 要运行的命令
[显示全文]
2008-05-29 09:39:57
First up, we need to create a table to handle the session data, and here’s how it will look:
CREATE TABLE sessions (ID INT NOT NULL AUTO_INCREMENT PRIMARY KEY, SessionID CHAR(26), Data TEXT DEFAULT ”, DateTouched INT);
Now, session operations script
[显示全文]
2008-05-28 11:15:06
Import Namespace=”System”
Import Namespace=”System.Web.HttpPostedFile”
Import Namespace=”System.Web.UI.HtmlControls.HtmlInputFile”
[显示全文]
2008-05-28 11:13:27
加入wsDataContent.Credentials = System.Net.CredentialCache.DefaultCredentials即正常(*号标出)
‘WebService源文件
Private dsData A
[显示全文]
2008-05-28 11:11:06
PHP Upload files to the virtual host errors:
Warning: move_uploaded_file() [function.move-uploaded-file]: open_basedir
[显示全文]
2008-05-28 11:09:23
Imports System.Data
Imports System.Data.OleDb
Public Class Conn
[显示全文]
2008-05-28 11:07:48
首先将Apache日志设为按天来生成,需用到cronolog.
使用rpm -qa | grep “cronolog”查看当前系统是否已经安装了cronolog,没
[显示全文]