May012012
Apr292012
dedecms5.6数据库内容升级dede5.7
TRUNCATE `dede_addonarticle`;
TRUNCATE `dede_archives`;
TRUNCATE `dede_arctiny`;
TRUNCATE `dede_arctype`;
insert into dedecmsv57utf8sp1.dede_addonarticle select * from gk_fuke999_org.fuke999org_addonarticle;
insert into dedecmsv57utf8sp1.dede_archives select * from gk_fuke999_org.fuke999org_archives;
insert into dedecmsv57utf8sp1.dede_arctiny select *...阅读全文
Apr272012
Apr252012
php取得汉字的首字母
>?php
/**
* @param unknown_type $str
* @return 取得汉字的首字母
*/
function getfirstchar($str){
$fchar=$str[0];
//判断是否为字符串
if(ord($fchar)-->=ord("A") && ord($fchar)=-20319 and $asc=-20283 and $asc=-19775 and $asc=-19218 and $asc=-18710 and $asc=-18526 and $asc=-18239 and $asc=-17922 and $asc=-17417 and $asc=-16474 and $asc=-16212 an...阅读全文
Apr232012
js日期选择控件-My97DatePicker
一. 简介
1. 简介
目前的版本是:4.8
2. 注意事项
My97DatePicker目录是一个整体,不可破坏里面的目录结构,也不可对里面的文件改名,可以改目录名
My97DatePicker.htm是必须文件,不可删除(4.8以后不存在此文件)
各目录及文件的用途:
WdatePicker.js 配置文件,在调用的地方仅需使用该文件,可多个共存,以xx_WdatePicker.js方式命名
config.js 语言和皮肤配置文件,无需引入(4.8以后合并入Wdate...阅读全文
Apr232012
httpd.ini转.htaccess 重写教程
使用ISAPI Rewrite与Apache Rewrite是有区别的,主要是URL重写规则细节上,ISAPI[一般是windows系统]重写需要使用httpd.ini文件,而Apache[一般是unix系统]则使用.htaccess文件,通过对URL重写实例谈谈使用httpd.ini文件基于ISAPI Rewrite重写URL路径。目前使用的是wordpress程序,虽然前台已经全部重新架构,但URL路径还是使用原有简单的URL,如一篇文章的URL路径:http://www.90qb.com/?p...阅读全文
Apr232012
发布个查询手机归属地的API
查询手机归属地的API
<?php
//调用方式域名后加上 ?mobile=13006764649
function Mobile_Ownership($Mobile) {
if (! empty ( $Mobile )) {
$Url = 'http://www.ip138.com:8080/search.asp?mobile=' . $Mobile . '&action=mobile';
$Result = file_get_contents ( $Url );
$start_str = strpos ( $Result, '<TABLE width=349 border="1"' );
$end_str = strrpos ( ...阅读全文
Apr222012
Apr222012
Windows2003 IIS6完美实现WordPress伪静态的方法
Windows2003 IIS6完美实现WordPress伪静态的方法
[PHP+MYSQL, WordPress]
Windows2003 IIS6下实现伪静态的方法有很多,一种通过IIS的404处理机制来实现(缺陷是搜索结果页分页错误),这比ISAPI_ReWrite要方便,可是对搜索引擎的友好度可圈可点,暂不推荐;
还有一种是通过服务器端安装伪静态组件实现,这种也是现在最常用的。当然,你如果是LINUX服务器,那就简单多了,直接使用Ap...阅读全文
Apr162012
Dedecms5.6标签Tags分页实现伪静态的修改方法
关于伪静态(Rewrite)大家都非常了解,假如您的网站是动态的,是不利于搜索引擎收录的,比如DEDECMS,它的文章和栏目等都可以生成静态,而标签Tag是动态的,前边已经给大家介绍了《Dedecms实现Tag标签伪静态Rewrite的修改方法》,另外还有专门针对WIn主机的伪静态方法,有的朋友咨询如何给分页实现伪静态,现在我们就来看看烈火网转载于网上的教程。
第一步:
1.打开arc.taglist.class.ph...阅读全文