自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

博了个客

编程大白

  • 博客(22)
  • 收藏
  • 关注

原创 phpexcel 导出图片

$objPHP = new PHPExcel(); $objActSheet = $objPHP->getActiveSheet(); $objActSheet->setCellValue('A1', '姓名'); $objActSheet->setCellValue('B1', '电话'); $o...

2019-03-11 15:00:02 4565

原创 linux yum安装mysql8.0

首先下载包https://dev.mysql.com/downloads/repo/yum/mysql80-community-release-el7-1.noarch.rpmrpm -Uvh mysql80-community-release-el7-1.noarch.rpmyum install mysql-community-server...service mysqld...

2019-01-17 12:32:09 819

原创 linux 配置redis自启

redis源码里其实已经提供了一个初始化脚本,位置在/usr/redis/utils/redis_init_script复制到/etc/init.d/redis 重命名 给权限然后 vim /etc/rc.local把service redis start 放最后 :wq 保存退出也可以利用chkconfig 配置redis自启chkconfig  redis  o...

2019-01-14 10:57:17 287

原创 php redis配置主从复制

首先把主从服务器redis.conf  daemonize no改成yes redis会在后台运行把主服务器 redis.conf  bind 127.0.0.1  改为0.0.0.0从服务器:添加slaveof 【主ip】 【主端口】 ...

2019-01-11 15:11:49 435

原创 php导出csv乱码 添加bom头

本地导出没问题 线上导出一直乱码发现是bom头的问题excel打开就乱码在导出的时候 echo 一个bom头echo "\xEF\xBB\xBF";

2018-11-05 15:32:00 2337

原创 创建微信卡券 php

public function createCoupon()    {        $data['card_type'] = $this->input->post_get('card_type');//代金券、兑换券、优惠券、折扣券        $data['brand_name'] = $this->input->post_get('brand_name');//商户...

2018-06-07 17:46:06 2746 1

原创 微信卡券导入自定义code码 php

首先大体思路是这样的:     先创建一个卡券,注意自定义创建的卡券有三个参数是不一样的       quantity    为0     库存      use_custom_code  为true   是否自定义Code码        get_custom_code_mode  为 GET_CUSTOM_CODE_MODE_DEPOSIT   卡券为预存code模式卡券    创建成功后导入...

2018-06-07 17:22:47 2794 1

原创 phpexcel导出excel office excel打开有问题 php

客户导出excel   用office excel 打开提示在最后加个exit;  完美解决

2018-06-06 18:45:35 1833

原创 linux nginx配置 pathinfo模式

我是给二级域名配置的pathinfo模式所以要改的是二级域名的配置.conf把location ~ \.php$ {        fastcgi_pass   127.0.0.1:9000;        fastcgi_index  index.php;        fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_n...

2018-05-29 11:43:22 1189

原创 linux 配置php环境变量

vim /etc/profile//加上export PATH=$PATH:/usr/local/php/bin保存退出source /etc/profilephp -v

2018-05-25 16:18:23 4695

原创 linux 配置nginx 自启

vim /etc/init.d/nginx//直接复制#!/bin/bash# nginx Startup script for the Nginx HTTP Server# it is v.0.0.2 version.# chkconfig: - 85 15# description: Nginx is a high-performance web and proxy server.# It h...

2018-05-25 16:04:55 218

原创 linux 配置mysql 自启

//复制mysql.server  改为mysqldcp  /usr/local/mysql/support-files/mysql.server   /etc/init.d/mysqld//赋权限chmod  755 /etc/init.d/mysqldchkconfig  mysqld onchkconfig

2018-05-25 16:02:24 230

原创 linux 配置php自启

vim /etc/init.d/php-fpm//下面复制即可   不要以为有# 就不需要#!/bin/sh# chkconfig:   2345 15 95# description:  PHP-FPM (FastCGI Process Manager) is an alternative PHP FastCGI implementation \# with some additional fe...

2018-05-25 15:59:38 234

原创 nginx配置二级域名

先在阿里云解析一个二级域名  控制台-》域名与万网-》域名  解析-》添加解析                 填上主机记录  www          记录值  你的ip   其他默认就ok   现在编辑nginx.conf    /usr/local/nginx/conf/nginx.conf在http中加上一句    include /usr/local/nginx/conf/sites/*...

2018-05-24 11:47:25 929

原创 ci 验证码不存图片和点击刷新图片 php

<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');if ( ! function_exists('create_captcha')){    function create_captcha($data = '', $font_path = '')    {        $defaults =...

2018-05-17 14:45:32 365

原创 微信卡券上传logo素材 php

//获取token    public function getToken()    {        $appid = $this->config->item('appid');        $secret = $this->config->item('secret');        $url = "https://api.weixin.qq.com/cgi-bin/...

2018-05-11 18:06:32 1327

原创 本地缓存token php

//获取token    public function getToken()    {        $appid = $this->config->item('appid');        $secret = $this->config->item('secret');        $url = "https://api.weixin.qq.com/cgi-bin/...

2018-05-11 18:01:22 1320

原创 linux vim下快速查找

查找是在esc模式下使用的在esc模式下输入:  /save_path  回车不要忘了冒号!!!!/   ?  都可以查找:/save_path:?save_path

2018-05-02 14:21:42 821

原创 后端收不到微信小程序wx.request的传值问题 php

wx.request({ url: 'test.php', //仅为示例,并非真实的接口地址 data: { x: '' , y: '' }, header: { 'content-type': 'application/json' // 默认值 }, success: function(res) { console.log(res....

2018-03-26 11:11:17 3206

原创 微信扫码支付 php

//微信扫码支付public function wxPay_native($price,$order,$body)    {        $opts = [            'appid' => $this->config->item('appid'),//appid            'mch_id' => $this->config->item(...

2018-03-15 12:07:39 190

原创 微信h5支付 php

    /**     * 微信h5支付     */    public function wxh5Pay($price,$order,$body)    {        $opts = [            'appid' => $this->config->item('appid'),//appid            'mch_id' => $this-&g...

2018-03-15 11:59:08 476

原创 微信js支付 php

        /* * 自己封装的微信js支付        *ci框架 */ public function wxPay($openid,$price,$order,$body) {     $opts = [     'appid' => $this->config->item('appid'),//appid     'mch_id' => $this->...

2018-03-15 11:50:59 327

空空如也

空空如也

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

TA关注的人

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