摘要: 前台pc标签的使用:{pc:content 参数名="参数值" 参数名="参数值" 参数名="参数值"} 如: {pc:content action="lists" catid="9" cache="3600" num="20" page="$page"}{/pc} 执行流程如下: ①模块名:content ②模块类文件:modules/content/classes/content_tag.class.php,便于二次开发或标签的扩展 阅读全文
posted @ 2013-03-06 16:08 天道酬勤,坚持! 阅读(9782) 评论(0) 推荐(2) 编辑
摘要: 留言板测试玩的!<?php defined('IN_PHPCMS') or exit('No permission resource');class index{ private $db; function __construct(){ $siteid=isset($_GET['siteid'])?intval($_GET['siteid']):get_siteid(); define(SITEID,$siteid); //加载模型 $this->db=pc_base::load_model(guestbook_mod 阅读全文
posted @ 2013-03-06 15:32 天道酬勤,坚持! 阅读(2780) 评论(0) 推荐(0) 编辑
摘要: 可以解决采集需要自动提交的问题!方法一:<html><head><title>UntitledDocument</title>(1)自动提交表单:<metahttp-equiv="Content-Type"content="text/html;charset=gb2312"></head><scriptlanguage=javascript>setTimeout("document.form1.submit()",10000)</script&g 阅读全文
posted @ 2013-03-06 11:59 天道酬勤,坚持! 阅读(1577) 评论(0) 推荐(0) 编辑
摘要: 1.编码必须统一。数据库编码,文件编码,将取得的数据插入数据库,等等。都要和要被采集的网站的编码一样。2.在写正则匹配的时候,写匹配模式时必须转移双引号""(如:\"\")和斜杠"/"(如:<\/a>)。3.需要耐心进行调试切不可操之过急! 阅读全文
posted @ 2013-03-01 17:53 天道酬勤,坚持! 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 首先,你的拥有一个有泛域名解析的顶级域名,例如: domain.com 其次,在 httpd.conf 中打开 mod_rewrite 之后,在 httpd.conf 的最后,添加以下内容: RewriteEngine on RewriteMap lowercase int:tolower RewriteMap vhost txt:/usr/local/etc/apache/vhost.map RewriteCond ${lowercase:%{SERVER_NAME}} ^(.+)$ RewriteCond ${vhost:%1} ^(/.*)$ RewriteRule ^/... 阅读全文
posted @ 2013-03-01 15:45 天道酬勤,坚持! 阅读(474) 评论(0) 推荐(0) 编辑
摘要: 后台=>内容=》模型管理点击添加模型后进入:填写相应信息(这里以招聘信息发布模型为例)然后点击“字段管理”进入:点击“添加字段”去添加你想要的字段:添加完字段后,可以点击预览模型:建完后有两个表如:KO!!!! 阅读全文
posted @ 2013-02-26 09:57 天道酬勤,坚持! 阅读(4632) 评论(0) 推荐(0) 编辑
摘要: var url="www.aaf.com/af.php?id=50&a=100"; alert(url); if(url.indexOf("?")!=-1){ var p=url.indexOf("?"); //返回所在位置 var str = url.substr(p+1) //从这个位置开始截取 strs = str.split("&"); //拆分 alert(strs); for(var i=0;i<strs.length;i++){ document.write([strs[i].s 阅读全文
posted @ 2013-02-22 13:37 天道酬勤,坚持! 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 启动apache遇到错误:httpd: Could not reliably determine the server's fully qualified domain name[root@server httpd-2.2.4]# /usr/local/apache/bin/apachectl starthttpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName查看端口被谁占用了 netstat -pan | grep 8 阅读全文
posted @ 2013-02-21 22:36 天道酬勤,坚持! 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 1、./libs/functions/global.func.php--------------------------------------------------字符串安全处理函数-------------------------------------------------------new_addslashes($string) 返回经 addslashes处理过得字符或数组new_stripslashes($string)返回经stripslashes处理过得字符或数组new_htmlspecialchars($string)返回经htmlspecialchars处理过得字符或数 阅读全文
posted @ 2013-01-29 15:03 天道酬勤,坚持! 阅读(10052) 评论(0) 推荐(0) 编辑
摘要: 表明默认当前load_model('xxxx')模块所在表名xxxx若要指定表名则:操作在mysql.class.php中$this->db->select(...)1、查询$this->select($where = '', $data = '*', $limit = '', $order = '', $group = '', $key='')返回结果集数组条件 ,字段(id,name,email....),范围排序方式,分组方式,按建名排序2、查询多条数据并分页 阅读全文
posted @ 2013-01-29 14:30 天道酬勤,坚持! 阅读(29288) 评论(0) 推荐(0) 编辑