shell脚本编程学习笔记(三)权限分配文件或目录(普通文件) ------chmod scl 用户对某个程序或某个应用脚本-------sudo chmod 不能实现权限细化问题 1.数字权限分配 chmod 755 file r 4 w 2 x 1 2.字母权限分配 chmod u+x file chmod o-w file chmod g+w file chmod g+w,g+x file 2018-04-22浏览 2534
shell脚本编程学习笔记(二)文件权限/用户管理查看文章权限 ls -l file ll Linux权限 r 可读 w 可写 x 可执行 Linux用户 所有者(u) 所属组(g) 其他用户(o) 所有用户(all) drwxr-xr-x. 3 root root 4096 Feb 7 12:38 mnt 第一个元素: d 文件夹 - 文件 r可读 w可写 x可执行 -无权限 root用户对mnt具有rw2018-04-22浏览 2382
类库 | 字符串截取,支持中文和其他编码工作中使用的,觉得挺好用的,分享给大家 /** * 字符串截取,支持中文和其他编码 * @static * @access public * @param string $str 需要转换的字符串 * @param string $start 开始位置 * @param string $length 截取长度 * @param string $charset2018-04-19浏览 3206
PDO实现数据库的增删改查PDO实现数据库的增删改查 //链接数据库 $pdo = new PDO('mysql:host=localhost;dbname=test','root','root'); //增 $res = $pdo->exec("insert into user(name) values('测试1')"); if($res){ echo '添加成功数据ID为:'.$2018-04-19浏览 3844
地址栏中文被解析为十六进制,如何转换地址栏中文被解析为十六进制,如何转换回来 urldecode($str) 十六进制转换为中文 $str = '%E9%BB%91'; $a = urldecode($str); var_dump($a); //string(3) "黑" 中文转换为十六进制 $b = urlencode('星期二'); var_dump($b); //%E6%98%9F%E62018-04-18浏览 3076
微信支付学习笔记(三)扫码支付/查询/退款统一下单 必填参数 https://pay.weixin.qq.com/wiki/doc/api/native.php?chapter=9_1 下单成功后使用异步回调修改订单状态 扫描支付页面(修改) $input->SetNotify_url("http://www.wangmingchang.com/example/notify.php") 在logs中2018-04-17浏览 2931
微信支付学习笔记(二)微信支付操作下载官方demo https://pay.weixin.qq.com/wiki/doc/api/native.php?chapter=11_1 配置商户信息 lib/Wxpay.config.php 在index.php中修改域名 3.修改example/native.php中的域名 2018-04-16浏览 3731
微信支付学习笔记(一)基础准备: 1.认证的服务号 https://mp.weixin.qq.com/ 2.企业营业执照以及对公账号 3.已备案的域名和服务器 过程: 1.开通微信支付 2.开通商户平台 https://pay.weixin.qq.com 支付: 公众号支付 app支付 扫码支付 https://pay.weixin.qq.com/guide/webbased_pay2018-04-16浏览 2703
tp5+小程序开发笔记(九)小程序开发mvc思想 view层 home.wxml model层 home.model.js controller层 home.js 数据的加载与绑定 home模型的model层 class Home{ //构造函数 constructor(){ } getBannerDate(id,callBack){ wx.request({ url:'http://www.c2018-04-22浏览 3918
tp5+小程序开发笔记(六)在application/extra下的配置文件都会被tp5自动加载 新建setting.php return[ 'img_prefix'=>'http://wmc.com/images' ] 使用模型的获取器拼接图片路径 tp5中只有public是公开的 public/images/1,jpg config('配置文件.配置名称'); $a = confi2018-04-15浏览 3648