自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(34)
  • 收藏
  • 关注

转载 使用FPDF输出中文

① 下载FPDF相关资料=》https://github.com/DCgithub21/cd_FPDF② 查看目录文件注:ttf2pt1.zip为字体转换程序③ 运行example.php即可输出中文 require 'chinese.php'; $pdf = new PDF_Chinese(); $pdf->AddGBFont('simh...

2017-06-08 13:19:00 122

转载 JS判断客户端是手机还是PC

function IsPC() { var userAgentInfo = navigator.userAgent; var Agents = ["Android", "iPhone", "SymbianOS", "Windows Phone", "iPad", "iPod"]; v...

2016-09-22 16:41:00 160

转载 SPL标准库常用的数据结构

栈数据结构1 $stack = new SplStack(); //栈数据结构->先进后出 2 $stack->push('data1'); //入栈3 $stack->push('data2'); //入栈4 echo $stack->pop(); //出栈->data25 echo ...

2016-09-14 00:22:00 113

转载 php下载文件,添加响应头

//下载,添加响应头信息 header('Content-type:application/octet-stream'); header('Content-Disposition:attachment;filename="'.basename($file).'"'); header('Content-Length:'.filesize($file)); read...

2016-09-10 15:54:00 392

转载 软件生命周期

转载于:https://www.cnblogs.com/D-Chen/p/5838184.html

2016-09-03 22:37:00 69

转载 Ubantu 安装 LAMP环境

1、通过 apt-get update 命令从ubantu软件源中下载可安装软件的列表。2、通过一条命令可以一次性的安装LAMPapt-get install apache2 php5 mysql-server php5-mysql3、为php安装gd库,curl扩展sudo apt-get install php5-gd curl libcurl3 libc...

2016-09-03 22:33:00 61

转载 MySQL允许远程访问

grant all privileges on *.* to 'root'@'%' identified by 'root' with grant option;flush privileges;以上两句话的意思是:1、带着赋予权限的权利,赋予他人权限,可访问任何数据库任何表,登陆账号为root,可为任意主机ip,密码为root。          2、更新权限。...

2016-08-18 10:39:00 63

转载 微信浏览器判断

判断是否是微信浏览器,是的话才会显示页面if(strpos($_SERVER['HTTP_USER_AGENT'],'MicroMessenger') !== false){  //这里是微信浏览器  echo '你的内容';}转载于:https://www.cnblogs.com/D-Chen/p/5783022.html...

2016-08-18 10:24:00 63

转载 简单版解决IE兼容性问题

<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />在访问页面时,如果安装了 Google Chrome Frame(谷歌内嵌浏览器框架GCF) ,则使用GCF进行渲染如果未安装GCF,则用最高版本的IE内核来渲染转载于:https://www.cnblogs.com/D-Ch...

2016-08-18 10:13:00 38

转载 DEDECMS中,会员中心的常用知识

会员中心引入了member/config.php,即可用$cfg_ml->fields['face']、$cfg_ml->fields['spacesta']等转载于:https://www.cnblogs.com/D-Chen/p/5726891.html

2016-08-01 18:31:00 128

转载 DEDECMS中,文章页直接输出字段名

文章页中,可直接输出字段名转载于:https://www.cnblogs.com/D-Chen/p/5726881.html

2016-08-01 18:29:00 126

转载 DEDECMS中,list标签和pagelist标签

列表数据标签:dede:list{dede:list col='' titlelen=''infolen='' imgwidth='' imgheight='' orderby='' pagesize=''}{/dede:list}col=1 内容列数titlelen=30 标题长度infolen=250 内容摘要长度imgwidth=120 缩略图宽imghe...

2016-08-01 18:27:00 222

转载 DEDECMS中,获取面包屑导航

获取面包屑导航{dede:field name='position'/}{dede:field.position/}转载于:https://www.cnblogs.com/D-Chen/p/5726824.html

2016-08-01 18:23:00 282

转载 DEDECMS中,获取当前栏目名称

获取当前栏目名称{dede:field name='typeurl' function=”GetTypeName(@me)”/} 指的是当前栏目的URL地址{dede:field name='typename' function=”GetTypeName(@me)”/}指的是当前栏目的名称转载于:https://www.cnblogs.com/D-Chen/p/...

2016-08-01 18:22:00 108

转载 DEDECMS中,引入文件

引入文件:dede:include标签:{dede:include filename="foot.htm"/}转载于:https://www.cnblogs.com/D-Chen/p/5726816.html

2016-08-01 18:21:00 175

转载 DEDECMS中,友情链接

友情链接:dede:flink{dede:flink row='24' type='image' titlelen="24" typeid="0"} [field:link /] {/dede:flink}type:链接类型,值:a. textall 全部用文字显示;b. textimage 文字和图得混合排列;c. text 文字链接,仅显示不带Logo的链接;...

2016-08-01 18:01:00 167

转载 DEDECMS中,常见全局变量

全局变量{dede:global.cfg_cmspath/} 是dedecms 的安装目录,一般就是网站的根目录。{dede:global.cfg_cmsurl/}是当前目录 注意加一根斜线{dede:global.cfg_cmsurl/}/是根目录主页链接:{dede:global.cfg_indexurl/}{dede:global....

2016-08-01 17:59:00 171

转载 DEDECMS中,channelartlist标签

当前频道的下级栏目的内容列表 dede:channelartlist标签:{dede:channelartlist row=6} <dl> <dt><a href='{dede:field name='typeurl'/}'>{dede:field name='typename'/}</a></...

2016-08-01 17:10:00 166

转载 DEDECMS中,自增长标签

自增长arclist 标签下使用 [field:global.autoindex/] 默认从1开始channel 标签下使用 [field:global.autoindex/] 默认从0开始channelartlist 标签下使用 {dede:global.itemindex/} 默认从1开始转载于:https://www.cnblogs.com/D-Chen/...

2016-08-01 17:03:00 106

转载 DEDECMS中,arclist标签

文档列表 dede:arclist标签: {dede:arclist flag='h' typeid='' row='' col='' titlelen='' infolen='' imgwidth='' imgheight='' listtype='' orderby='' keyword='' limit='0,1'}    <a href='[fie...

2016-08-01 17:00:00 326

转载 DEDECMS中,channel标签

获取栏目列表标签 dede:channel标签: {dede:channel type='top' row='8' currentstyle="<li><a href='~typelink~' class='thisclass'>~typename~</a> </li>"}...

2016-08-01 16:55:00 135

转载 MySQL中,把varchar类型转为date类型

如下表:先使用str_to_date函数,将其varchar类型转为日期类型,然后从小到大排序语法:select str_to_date(class_time,'%Y%m%d %H:%i:%s') a from a order by a desc ;转载于:https://www.cnblogs.com/D-Chen/p/5636954.html...

2016-07-03 10:41:00 2026

转载 Pigcms中WeixinAction的简略版流程

if $this->ali = 0;1、new wechat() //该类存于PigCms/lib/ORG/Wechat.class.php2、list($content,$type) = $this->reply($data);3、$weixin->response($content,$type);reply($data)方法:if($dat...

2016-06-30 19:20:00 39

转载 Windows和Linux下查看Apache、MySQL、PHP版本

# Windows查看Apache版本:使用命令:httpd -v# Linux查看Apache版本:使用命令:apachectl -v# Windows查看MySQL版本:使用命令:mysql --version# Linux查看MySQL版本:使用命令:mysql -V# Windows查看PHP版本:使...

2016-06-30 18:55:00 231

转载 CentOS7 firewall的使用

# 查看区域firewall-cmd --get-zones# 查看默认区域firewall-cmd --get-default-zone# 给区域添加永久性服务firewall-cmd --add-service=http --zone=public --permanent# 删除区域服务firewall-cmd --remove...

2016-06-28 19:33:00 70

转载 CentOS7 systemctl的使用

# 查看正在运行的服务systemctl# 查看某个服务的状态systemctl status httpd.service# 启动服务systemctl start foo.service如:systemctl start httpd.service# 停止服务systemctl stop foo.service如:syste...

2016-06-27 19:05:00 61

转载 CentOS7 列出服务和对应端口

列出服务和他们对应的端口:netstat -tulpn转载于:https://www.cnblogs.com/D-Chen/p/5621215.html

2016-06-27 18:36:00 564

转载 CentOS7 查看ip

查看内网:ip addr查看公网:curl members.3322.org/dyndns/getip转载于:https://www.cnblogs.com/D-Chen/p/5621206.html

2016-06-27 18:34:00 70

转载 CentOS7 安装LAMP环境

1、使用yum安装yum -y install httpd mysql mysql-server php php-mysql postgresql postgresql-server php-postgresql php-pgsql php-devel2、配置httpd2.1、启动httpd服务并把此服务单元加入当前运行级systemctl start httpd.ser...

2016-06-27 10:14:00 53

转载 linux中 ECShop的文件不能写

解决办法:  1、开放权限  使用命令:chmod -R 777 文件路径  2、关闭SELinux  使用命令:setenforce 0转载于:https://www.cnblogs.com/D-Chen/p/5615396.html...

2016-06-24 21:42:00 139

转载 CentOS 开启GD库

  在php.ini 中没有找到"extension=php_gd2.dll"这行代码,这是因为CentOS一般没有预装GD库。解决办法:1、在线安装GD库yum-yinstallphp-gd 2、#重启apache,使其生效 servicehttpdrestart转载于:https://www.cnblogs.com/D-Chen/p/56153...

2016-06-24 21:38:00 209

转载 查询一张表中有重复字段的记录

语法:select * from 表名 where (字段名) in (select 字段名 from 表名 group by 字段名 having count(*) > 1);如一下goods表::执行sql语句:select * from goods where inventory in (select inventory from goods group b...

2016-06-24 20:37:00 102

转载 MySQL中,修改表的某一字段的部分值

语法:update 表名 set 字段名 = replace(字段名,'替换前内容','替换后的内容') where 条件。如:执行sql语句:update student set name = replace(name,'白','黑') where name like '%白%';转载于:https://www.cnblogs.com/D-Chen/p/561...

2016-06-24 19:07:00 650

转载 MySql中,复制旧表结构到新表

# 创建学生表create table student(age int,name varchar(32))engine myisam charset utf8;insert into student values(18,'小白');# 创建教师表,结构与学生表结构一模一样create table teacher like student;# 把学生表的数据写进教师表中inse...

2016-06-24 18:42:00 167

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除