?php ob_start(); session_start(); $num=0; $dirpt=online; $reftime=1; if (is_dir($dirpt) while (($file = readdir($dir)) !== false) { if(strcmp($file,..)==0 || strcmp($file,.)==0){ continue; } $D_[date(&q Posted at 09-03-24 by 佚名 views(1)
将httpd.conf中CustomLog logs/access.log common 改成 CustomLog |c:/apache/bin/rotatelogs c:/apache/logs/%Y_%m_%d.access.log 86400 480 common 重启Apache 其中c:/apache/是你安装apache的路径 这样每一天生成一个日志文件 Posted at 09-03-24 by 佚名 views(1)
!--- 简单的树形菜单 徐祖宁(唠叨) 2003.03 czjsz_ah@stats.gov.cn 树形菜单较滑动菜单稍微复杂一点。其主要难点在于从简洁的数据描述来产生便于操纵的html结构。 本例用来展示树形菜单的编写。使用无线表格,算法上采用了递归,理论上可构造无穷分制枝的树。 本代码可自由扩散。 --- style table {font-size = 9pt} td {he Posted at 09-03-24 by 佚名 views(1)
环境:W2k+php4.3.1+php/gtk0.5.2 一个简单的记事本(只可以打开文件进行修改) ?php set_time_limit (0);// 设置运行时间 if (!class_exists (gtk))// 判断是否有GTK模块 if (strtoupper (substr ($_SERVER[OS], 0, 3)) == WIN) dl (php_gtk.dll); else & Posted at 09-03-24 by 佚名 views(0)
!--- 简单的滑动菜单 徐祖宁(唠叨) 2003.03 czjsz_ah@stats.gov.cn 滑动菜单是一种较常用的菜单形式,在罗列二级分类的场合下广泛使用。其特点是代码量极小,数据描述简洁。 本例使用无线表格,以类的书写方式表述。 本代码可自由扩散。 --- style table {font-size = 9pt} td {height = 20px} /style body span id=menus/s Posted at 09-03-24 by 佚名 views(1)
?php extract($_POST); extract($_GET); ? html head title查看服务器端目录和文件/title meta http-equiv=Content-Type content=text/html; charset=gb2312 /head body bgcolor=#FFFFFF text=#000000 form name=form1 method=post action=?php echo $_SERVER[PHP_SELF]; ? font co Posted at 09-03-24 by 佚名 views(5)
?php session_start(); $login=false; $lifetime=60;//会话时间 $loginFILE=loginmsg.txt; if(file_exists($loginFILE)$lifetime){//在会话时间范围内 $info=file($loginFILE); $username=trim($info[0]);//已在线的登陆用户名 $password=trim($info[1]);&n Posted at 09-03-24 by 佚名 views(1)
?php ob_start(); session_start(); class CC{ private $REFURL=http://www.abc.com;//登陆成功后转换页面 private $LoginFLAG=false;//登陆成功标志 private $loginFILE=loginmsg.txt;//信息文件 & Posted at 09-03-24 by 佚名 views(1)
|
