<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[Gentry__的博客]]></title><description><![CDATA[个人总结]]></description><link>https://blog.csdn.net/Gentry__</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; Gentry__]]></copyright><item><title><![CDATA[数据导出excel]]></title><link>https://blog.csdn.net/Gentry__/article/details/72875574</link><guid>https://blog.csdn.net/Gentry__/article/details/72875574</guid><author>Gentry__</author><pubDate>Tue, 06 Jun 2017 10:32:18 +0800</pubDate><description><![CDATA[/**
	 * exportExcel($data,$title,$filename);
    * 导出数据为excel表格
    *@param $data    一个二维数组,结构如同从数据库查出来的数组
    *@param $title   excel的第一行标题,一个数组,如果为空则没有标题
    *@param $filename 下载的文件名
    *@examlpe 
 ]]></description><category></category></item><item><title><![CDATA[PHP 二维数组根据某个字段排序]]></title><link>https://blog.csdn.net/Gentry__/article/details/68483427</link><guid>https://blog.csdn.net/Gentry__/article/details/68483427</guid><author>Gentry__</author><pubDate>Thu, 30 Mar 2017 09:54:10 +0800</pubDate><description><![CDATA[本文记录的要实现的功能类似于 MySQL 中的  ORDER BY，上个项目中有遇到这样的一个需求。

要求：从两个不同的表中获取各自的4条数据，然后整合(array_merge)成一个数组，再根据数据的创建时间降序排序取前4条。

遇到这个要求的时候就不是 ORDER BY 能解决的问题了。因此翻看 PHP 手册查找到了如下方法，做此笔记。

废话少说，奉上代码，清单如下：

<]]></description><category></category></item><item><title><![CDATA[Linux svn搭建 及win使用]]></title><link>https://blog.csdn.net/Gentry__/article/details/54291448</link><guid>https://blog.csdn.net/Gentry__/article/details/54291448</guid><author>Gentry__</author><pubDate>Mon, 09 Jan 2017 18:29:46 +0800</pubDate><description><![CDATA[1.安装svn服务端
yum install subversion      //从镜像下载安装svn服务器端
//检测是否安装成功  echo $?    svn --help
2.创建svn的项目库
  cd /usr/local/              //进入目录，准备创建svn目录

  mkdir svn                   //创建一个svn目录
 
  c]]></description><category></category></item><item><title><![CDATA[laravel  各种问题 各种解决 各种福利 (⊙_⊙)]]></title><link>https://blog.csdn.net/Gentry__/article/details/53673133</link><guid>https://blog.csdn.net/Gentry__/article/details/53673133</guid><author>Gentry__</author><pubDate>Thu, 15 Dec 2016 17:28:06 +0800</pubDate><description><![CDATA[问题一：
file_put_contents(/data/wwwroot/default/my_laravel/bootstrap/cache/services.
清除缓存
 php artisan cache:clear]]></description><category></category></item><item><title><![CDATA[Linux 安装composer  及laravel 对 composer使用]]></title><link>https://blog.csdn.net/Gentry__/article/details/53670267</link><guid>https://blog.csdn.net/Gentry__/article/details/53670267</guid><author>Gentry__</author><pubDate>Thu, 15 Dec 2016 14:44:22 +0800</pubDate><description><![CDATA[一、局部安装 


进入项目目录   /data/wwwroot/default
执行如下命令：
curl -sS http://install.phpcomposer.com/installer | php



安装等待过程一般不会很长
如看到以下提示 ，您composer 安装成功！！！
#!/usr/bin/env php
All settings correct fo]]></description><category></category></item><item><title><![CDATA[laravel 实现不同域名cookie共享   一个域名下登录 另一个域名下保持登录状态]]></title><link>https://blog.csdn.net/Gentry__/article/details/53635481</link><guid>https://blog.csdn.net/Gentry__/article/details/53635481</guid><author>Gentry__</author><pubDate>Wed, 14 Dec 2016 10:45:39 +0800</pubDate><description><![CDATA[xxx.com 和 www.xxx.com
比如 在www.xxx.com上登录 后把用户信息存入cookie中 
刷新 xxx.com 也保持登录状态




操作步骤：
laravel  配置全局
config/session.php 
'domain' => '.xxx.com',


还有larabel  cookie设置过期时间 单位是分钟计算的  不要搞错哦！]]></description><category></category></item><item><title><![CDATA[PHP+Nginx 配置上传文件大小限制]]></title><link>https://blog.csdn.net/Gentry__/article/details/53381298</link><guid>https://blog.csdn.net/Gentry__/article/details/53381298</guid><author>Gentry__</author><pubDate>Mon, 28 Nov 2016 17:57:20 +0800</pubDate><description><![CDATA[一.找到php.ini（阿里云）
/usr/local/php56/etc/php.ini
post_max_size = 125M
upload_max_filesize = 120M
max_execution_time=90
修改这几个参数：

1、post_max_size：指定POST数据所允许的最大大小
2、upload_max_filesize：表示上传文件的最大大小
]]></description><category></category></item><item><title><![CDATA[js/jq   input file获取本地文件路径  将要上传图片显示到页面]]></title><link>https://blog.csdn.net/Gentry__/article/details/53378237</link><guid>https://blog.csdn.net/Gentry__/article/details/53378237</guid><author>Gentry__</author><pubDate>Mon, 28 Nov 2016 15:25:05 +0800</pubDate><description><![CDATA[var imgurl = "";
    function getPhoto(node) {
        var imgURL = "";
        try{
            var file = null;
            if(node.files && node.files[0] ){
                file = node.files[0];
  ]]></description><category></category></item><item><title><![CDATA[js 标签选择与移除 个人经验分享]]></title><link>https://blog.csdn.net/Gentry__/article/details/53173628</link><guid>https://blog.csdn.net/Gentry__/article/details/53173628</guid><author>Gentry__</author><pubDate>Tue, 15 Nov 2016 17:28:28 +0800</pubDate><description><![CDATA[点击 + 号 div显示 
再次点击 + 号（或者点击空白处） div隐藏 
$("#addSign").click(function(){
    $('.add_list').toggle();
});
$(document).bind("click",function(e){
        var target  = $(e.target);
        if(target.clo]]></description><category></category></item><item><title><![CDATA[js(jquery)  tab标签切换 很洋气的奥(⊙_⊙)]]></title><link>https://blog.csdn.net/Gentry__/article/details/53021530</link><guid>https://blog.csdn.net/Gentry__/article/details/53021530</guid><author>Gentry__</author><pubDate>Thu, 03 Nov 2016 15:00:12 +0800</pubDate><description><![CDATA[$(document).ready(function(){
        var tab = $('.tab_y').val();
        $(".chou_nav_ul li").click(function(){
            var index=$(this).index();
            $(this).addClass("active").siblings]]></description><category></category></item><item><title><![CDATA[php异常]]></title><link>https://blog.csdn.net/Gentry__/article/details/52159344</link><guid>https://blog.csdn.net/Gentry__/article/details/52159344</guid><author>Gentry__</author><pubDate>Tue, 09 Aug 2016 08:16:46 +0800</pubDate><description><![CDATA[<?php
 //创建可抛出一个异常的函数
function checkNum($number){
    if($number>1){
        throw new Exception("Value must be 1 or below");
    }
    return true;
}

//在 "try" 代码块中触发异常
try{
    checkNum(3);
    //如]]></description><category></category></item><item><title><![CDATA[对缓存的理解]]></title><link>https://blog.csdn.net/Gentry__/article/details/51958632</link><guid>https://blog.csdn.net/Gentry__/article/details/51958632</guid><author>Gentry__</author><pubDate>Tue, 19 Jul 2016 21:24:35 +0800</pubDate><description><![CDATA[1.缓存是什么？
用于加速数据交换，达到用时即取的作用。缓存也是优化的一种方式。
2.理解：
一般我们在进行访问请求网站流程：用户通过客户端（浏览器）发送请求到服务器端，服务器端连接到数据库读取数据，最后服务器把数据信息返送到客户端。
加入缓存的理解是：


（1）服务器从数据库读取数据时，可以把数据存入内存中，下次用到同样数据，不需要再次连接数据库，直接从内存中读取。
（2）数据]]></description><category></category></item><item><title><![CDATA[linux（centOS7）安装 redis及php操作redis]]></title><link>https://blog.csdn.net/Gentry__/article/details/51941388</link><guid>https://blog.csdn.net/Gentry__/article/details/51941388</guid><author>Gentry__</author><pubDate>Mon, 18 Jul 2016 13:47:31 +0800</pubDate><description><![CDATA[Linux 安装 Redis
1.安装前的准备（安装gcc）
yum install gcc-c++
2.将redis下载到/usr/local/src目录下cd /usr/local/src
wget http://download.redis.io/releases/redis-2.8.17.tar.gz  #下载
tar xzf redis-2.8.17.tar.gz  #解压
cd ]]></description><category></category></item><item><title><![CDATA[Linux 安装 memcache]]></title><link>https://blog.csdn.net/Gentry__/article/details/51933874</link><guid>https://blog.csdn.net/Gentry__/article/details/51933874</guid><author>Gentry__</author><pubDate>Sun, 17 Jul 2016 19:35:37 +0800</pubDate><description><![CDATA[1.第一步需要安装编译工具
yum install wget  make gcc gcc-c++ zlib-devel openssl openssl-devel pcre-devel kernel keyutils  patch perl
2.将memcache安装到/usr/local/src目录
cd /usr/local/src
wget http://pecl.php.net/ge]]></description><category></category></item><item><title><![CDATA[mysql事务 个人笔记]]></title><link>https://blog.csdn.net/Gentry__/article/details/51918626</link><guid>https://blog.csdn.net/Gentry__/article/details/51918626</guid><author>Gentry__</author><pubDate>Fri, 15 Jul 2016 16:02:09 +0800</pubDate><description><![CDATA[1.mysql命令行操作事务
mysql> use user;
Database changed
mysql> select * from user
    -> ;
Empty set (0.00 sec)

mysql> begin;
Query OK, 0 rows affected (0.00 sec)

mysql> insert into user values(5);
Query ]]></description><category></category></item><item><title><![CDATA[如何提高网站的访问速度？]]></title><link>https://blog.csdn.net/Gentry__/article/details/51894648</link><guid>https://blog.csdn.net/Gentry__/article/details/51894648</guid><author>Gentry__</author><pubDate>Wed, 13 Jul 2016 09:13:17 +0800</pubDate><description><![CDATA[加快网站的浏览速度，可以在以下5个方面考虑：
1.减少http请求：
加载一个网站，会因为背景图片多，加载的慢，减慢网页的显示速度。
做法：将多张背景图片制作成一张；js、css等文件进行压缩


2.数据库优化：
（1）基本概念：数据库三范式，字段类型选择妥当（数值、字符、日期）
（2）创建索引
（3）sql语句的优化
（4）分表、分库、分区
（5）mysql读写分离、主从]]></description><category></category></item><item><title><![CDATA[nginx服务器搭建负载均衡]]></title><link>https://blog.csdn.net/Gentry__/article/details/51891597</link><guid>https://blog.csdn.net/Gentry__/article/details/51891597</guid><author>Gentry__</author><pubDate>Tue, 12 Jul 2016 18:42:19 +0800</pubDate><description><![CDATA[1.前言
我们不妨设想一下，如果我们的网站只有一台服务器，不幸的是服务器挂掉了。可想而知，我们的网站也就不能被正常访问到。这个时候凸显出负载均衡的重要性。负载均衡是将负载分摊到不同的服务器，保证了服务器的可用性，解决某台服务器负载高宕机而不会让服务器出现闲置的情况。
切记负载均衡的作用：减轻服务器压力。如果有2台服务器做nginx，访问压力就会均分。这样也可以减少单台服务器的压力。
2.下面]]></description><category></category></item><item><title><![CDATA[CentOS7 常用命令总结]]></title><link>https://blog.csdn.net/Gentry__/article/details/51880772</link><guid>https://blog.csdn.net/Gentry__/article/details/51880772</guid><author>Gentry__</author><pubDate>Mon, 11 Jul 2016 14:53:27 +0800</pubDate><description><![CDATA[#查看CentOS版本-1
lsb_release -a

返回结果：

LSB Version:    :core-4.1-amd64:core-4.1-noarch
Distributor ID: CentOS
Description:    CentOS Linux release 7.0.1406 (Core)
Release:        7.0.1406
Codename:]]></description><category></category></item><item><title><![CDATA[MySQL慢日志的学习]]></title><link>https://blog.csdn.net/Gentry__/article/details/51865347</link><guid>https://blog.csdn.net/Gentry__/article/details/51865347</guid><author>Gentry__</author><pubDate>Sat, 09 Jul 2016 09:58:49 +0800</pubDate><description><![CDATA[一、什么是慢日志
通俗的讲，是记录那些查询时间比较长的sql语句，把消耗时间等放到一个特定的文件中。
二、开启MySQL慢查询日志，监控有效率问题的SQL
1.打开mysql配置文件，找到[mysqld]在其下面添加
long_query_time = 2
log-slow-queries = D:/phpStudy/MySQL/host_slow.log
log-queries-not-]]></description><category></category></item><item><title><![CDATA[HTTP协议个人理解]]></title><link>https://blog.csdn.net/Gentry__/article/details/51858599</link><guid>https://blog.csdn.net/Gentry__/article/details/51858599</guid><author>Gentry__</author><pubDate>Fri, 08 Jul 2016 10:10:00 +0800</pubDate><description><![CDATA[1.对HTTP协议的解释
HTTP协议是整个Web的基础。
简单的说，客户端与服务器端要进行通信，两者都要遵守一个规范——HTTP协议。
2.HTTP的请求响应
HTTP协议是客户端发起请求，服务器端接受、响应。












3.HTTP的两大特性
无状态：HTTP协议对事物的处理不具备记忆能力，同一个客户端的这次请求与上一次请求没有关系。
无连接]]></description><category></category></item></channel></rss>