2017年11月30日
摘要: 前段代码: 后端代码: 阅读全文
posted @ 2017-11-30 15:38 唯懿 阅读(4361) 评论(0) 推荐(0) 编辑
摘要: 以下是上传附件的格式方法: 阅读全文
posted @ 2017-11-30 15:34 唯懿 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 由于mysql数据库里面存储时间存的是时间戳,取出来之后,JS要格式化一下显示。 需要转换调用该方法即可: 返回的格式是: 阅读全文
posted @ 2017-11-30 15:31 唯懿 阅读(9335) 评论(1) 推荐(0) 编辑
  2017年11月9日
摘要: 1、建用户: adduser phpq //新建phpq用户 passwd phpq //给phpq用户设置密码 2、建工作组 groupadd test //新建test工作组 3、新建用户同时增加工作组 useradd -g test phpq //新建phpq用户并增加到test工作组 注:- 阅读全文
posted @ 2017-11-09 15:05 唯懿 阅读(200) 评论(0) 推荐(0) 编辑
  2017年11月2日
摘要: select(); //查一条数据 //$arr = $n->find(); //查总条数 //$arr = $n->count(); //查最大值 //$arr = $n->max(); //查最小值 ... 阅读全文
posted @ 2017-11-02 10:32 唯懿 阅读(191) 评论(0) 推荐(0) 编辑
  2017年11月1日
摘要: __ROOT__ 获取TP的根路径 __SELF__ 获取浏览器地址栏中地址 __APP__ 入口文件的路径 __MODULE__ 当前程序模块的路径 __CONTROLLER__ 当前控制器的路径 __ACTION__ 当前操作方法的路径 阅读全文
posted @ 2017-11-01 09:16 唯懿 阅读(562) 评论(0) 推荐(0) 编辑
摘要: 1.URL访问 ThinkPHP采用单一入口模式访问应用,对应用的所有请求都定向到应用的入口文件,系统会从URL参数中解析当前请求的模块、控制器和操作,下面是一个标准的URL访问格式: 第一种访问方式http://localhost:/thinkphp/index.php/Home/Index/in 阅读全文
posted @ 2017-11-01 09:15 唯懿 阅读(21462) 评论(0) 推荐(0) 编辑
  2017年10月29日
摘要: 一、配置httpd.conf# Virtual hosts#Include conf/extra/httpd-vhosts.conf //取消这一行的# 二、配置httpd-vhosts.conf文件 1.多IP模式<VirtualHost *:80> DocumentRoot "E:/www/ht 阅读全文
posted @ 2017-10-29 09:10 唯懿 阅读(2774) 评论(0) 推荐(0) 编辑
  2017年9月21日
摘要: 返回上一层"; } $d = opendir($fname); $arr = array(); $arr1 = array(); $arr2 = array(); while($name = readdir($d)){ if($name!="." && $name!=".."){ ... 阅读全文
posted @ 2017-09-21 09:12 唯懿 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 无标题文档 处理页面 strQuery($sql); 阅读全文
posted @ 2017-09-21 09:10 唯懿 阅读(88) 评论(0) 推荐(0) 编辑