<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[sshfl_csdn的专栏]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/sshfl_csdn</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; sshfl_csdn]]></copyright><item><title><![CDATA[php rsa 非对称加密]]></title><link>https://blog.youkuaiyun.com/sshfl_csdn/article/details/50490270</link><guid>https://blog.youkuaiyun.com/sshfl_csdn/article/details/50490270</guid><author>sshfl_csdn</author><pubDate>Sat, 09 Jan 2016 23:05:09 +0800</pubDate><description><![CDATA[php rsa 加密 相关 api
openssl_pkey_get_private// 用来判断私钥是否可用，可用则返回 Resource id 
resource openssl_pkey_get_private(mixed key[,stringkey [, string passphrase = “”])
openssl_pkey_get_public// 用来判断公钥是否可用，可用则返回]]></description><category></category></item><item><title><![CDATA[PHP 之 compact extract list]]></title><link>https://blog.youkuaiyun.com/sshfl_csdn/article/details/50481305</link><guid>https://blog.youkuaiyun.com/sshfl_csdn/article/details/50481305</guid><author>sshfl_csdn</author><pubDate>Fri, 08 Jan 2016 10:55:49 +0800</pubDate><description><![CDATA[PHP 之 compact extract list
compact
extract
list{:target=”_blank”}
compact 栗子compact — 建立一个数组，包括*变量名*和它们的值compact 返回数组
$a = 'aa';
$b = 'bb';
$c = 'cc';
// 任何没有变量名与之对应的*字符串*都被略过
var_dump(compact('a', 'b']]></description><category></category></item><item><title><![CDATA[Laravel 校验规则之字段值唯一性校验]]></title><link>https://blog.youkuaiyun.com/sshfl_csdn/article/details/50159303</link><guid>https://blog.youkuaiyun.com/sshfl_csdn/article/details/50159303</guid><author>sshfl_csdn</author><pubDate>Fri, 04 Dec 2015 11:26:52 +0800</pubDate><description><![CDATA[laravel validator unique'name' => 'required|unique:test,display_name,11,age,extra,extra2'
解释对于客户端输入的 name 字段name 不能为空
name 字段值在给定的数据库表中需为唯一值// unique 校验规则 
unique:table,column,except,idColumn 
// 举个栗子]]></description><category></category></item><item><title><![CDATA[php项目琐碎总结]]></title><link>https://blog.youkuaiyun.com/sshfl_csdn/article/details/49228627</link><guid>https://blog.youkuaiyun.com/sshfl_csdn/article/details/49228627</guid><author>sshfl_csdn</author><pubDate>Sun, 18 Oct 2015 16:31:43 +0800</pubDate><description><![CDATA[项目标签php laravel mysql sqlserver一个数据库中可以存在多个表前缀类型，然后可以通过不同的连接去分开调用
PHP5中对象的赋值和传值都是以 引用 的方式
php 程序注释
// 参数类型
var_dump(gettype($parameter));
// 返回值类型
var_dump(gettype($returnData));
php preg_replace funct]]></description><category></category></item><item><title><![CDATA[在windows上安装php扩展]]></title><link>https://blog.youkuaiyun.com/sshfl_csdn/article/details/49228245</link><guid>https://blog.youkuaiyun.com/sshfl_csdn/article/details/49228245</guid><author>sshfl_csdn</author><pubDate>Sun, 18 Oct 2015 15:52:58 +0800</pubDate><description><![CDATA[步骤1 下载相应的dll文件，放到php的ext目录// 下载dll文件
注意下载dll文件可能需要先下载一个exe文件，然后运行这个exe去生成你需要的dll，但是一般情况下可能都是直接下载到相应的dll文件即可
// php ext目录类似如下
D:\WampServer\bin\php\php5.5.12\ext
2 在php.ini中增加相应的如下代码
extension=php_*.dll]]></description><category></category></item><item><title><![CDATA[mysql删除重复数据只保留一条]]></title><link>https://blog.youkuaiyun.com/sshfl_csdn/article/details/48477163</link><guid>https://blog.youkuaiyun.com/sshfl_csdn/article/details/48477163</guid><author>sshfl_csdn</author><pubDate>Tue, 15 Sep 2015 22:40:33 +0800</pubDate><description><![CDATA[简述最近在做一个项目，涉及到需要同步远端数据库的数据到本地，由于误操作导致数据库里面的数据出现重复（冗余）
ps: 由于数据量比较大，最后发现冗余了几万条记录
so 手动删除，呵呵
// 下面将以简单的例子来说明下如何处理这个 case
举个栗子以mysql数据库为例：在数据库中建立数据表 [prefix_]article
// 冗余表现在aid这列上，部分值出现了重复
另外，主要是考虑到想在aid]]></description><category></category></item><item><title><![CDATA[http post put patch 总结]]></title><link>https://blog.youkuaiyun.com/sshfl_csdn/article/details/47809341</link><guid>https://blog.youkuaiyun.com/sshfl_csdn/article/details/47809341</guid><author>sshfl_csdn</author><pubDate>Thu, 20 Aug 2015 16:36:45 +0800</pubDate><description><![CDATA[idempotent 幂等的如果一个方法重复执行多次，产生的效果是一样的，那就是idempotent的；
idempotent的意思是如果相同的操作再執行第二遍第三遍，結果還是一樣。
"Methods can also have the property of 'idempotence' in that (aside from error or expiration issues) the side]]></description><category></category></item><item><title><![CDATA[jquery ajax && php foreach array]]></title><link>https://blog.youkuaiyun.com/sshfl_csdn/article/details/45916879</link><guid>https://blog.youkuaiyun.com/sshfl_csdn/article/details/45916879</guid><author>sshfl_csdn</author><pubDate>Sat, 08 Aug 2015 15:46:02 +0800</pubDate><description><![CDATA[jquery ajax



$.ajax({
    // ...
    #  data: {hid: $('.height').filter(':checked').val()}, // parameter data comment below
    // data to be sent **to the server**
    dataType: 'json',
    success]]></description><category></category></item><item><title><![CDATA[thinkphp 整合 swiftmailer 实现邮件发送]]></title><link>https://blog.youkuaiyun.com/sshfl_csdn/article/details/46970859</link><guid>https://blog.youkuaiyun.com/sshfl_csdn/article/details/46970859</guid><author>sshfl_csdn</author><pubDate>Mon, 27 Jul 2015 10:14:28 +0800</pubDate><description><![CDATA[thinkphp swiftmailer(phpmailer)目录结构 
图 1 swiftmailer-phpmailer将swiftmailer整合到thinkphp中，如上图 1
我下载的版本是 swiftmailer-5.x, 将目录里面的lib文件夹重命名为swiftmailer,并拷贝到ThinkPHP/Library/Vendor目录下，如上图 1
配置 
图 2 phpmailer]]></description><category></category></item><item><title><![CDATA[thinkphp 整合 phpmailer 实现邮件发送]]></title><link>https://blog.youkuaiyun.com/sshfl_csdn/article/details/46934421</link><guid>https://blog.youkuaiyun.com/sshfl_csdn/article/details/46934421</guid><author>sshfl_csdn</author><pubDate>Fri, 17 Jul 2015 23:30:22 +0800</pubDate><description><![CDATA[发送邮件配置// thinkphp config.php
// 配置邮件发送服务器
'MAIL_SMTP'     => TRUE,
'MAIL_HOST'     => 'smtp.yeah.net',
'MAIL_SMTPAUTH' => TRUE,
// 测试邮箱
'MAIL_USERNAME' => 'sshsfl@yeah.net',
'MAIL_PASSWORD' => 'your-lo]]></description><category></category></item><item><title><![CDATA[thinkphp模型验证总结]]></title><link>https://blog.youkuaiyun.com/sshfl_csdn/article/details/46896519</link><guid>https://blog.youkuaiyun.com/sshfl_csdn/article/details/46896519</guid><author>sshfl_csdn</author><pubDate>Wed, 15 Jul 2015 17:41:44 +0800</pubDate><description><![CDATA[php thinkphp 模型自动验证 静态定义 动态验证定义 demos验证字段, 验证规则, 错误提示,[ 验证条件, 附加规则, 验证时间])
验证条件（可选）
包含下面几种情况：
0 存在字段就验证（默认）
1 必须验证
2 值不为空的时候验证验证时间（可选）
self::MODEL_INSERT 或者 1 新增数据时候验证
self::MODEL_UPDATE 或者 2 编辑数据时候验证]]></description><category></category></item><item><title><![CDATA[最近使用thinkphp的一些总结]]></title><link>https://blog.youkuaiyun.com/sshfl_csdn/article/details/46840819</link><guid>https://blog.youkuaiyun.com/sshfl_csdn/article/details/46840819</guid><author>sshfl_csdn</author><pubDate>Sat, 11 Jul 2015 12:01:13 +0800</pubDate><description><![CDATA[php phpexcel thinkphp 视图 模型验证thinkphp phpexcel整合将下载的PHPExcel拷贝到ThinkPHP Org目录下，参照下图
注意：此处只需拷贝Classes目录下的PHPExcel目录和PHPExcel.php文件，即可
上图有一个需要注意的地方，文件名修改了
PHPExcel.php --> PHPExcel.class.phpimport("Org.U]]></description><category></category></item><item><title><![CDATA[在 WampServer 下增加多版本的PHP支持]]></title><link>https://blog.youkuaiyun.com/sshfl_csdn/article/details/46693397</link><guid>https://blog.youkuaiyun.com/sshfl_csdn/article/details/46693397</guid><author>sshfl_csdn</author><pubDate>Tue, 30 Jun 2015 11:28:14 +0800</pubDate><description><![CDATA[WampServer根据我下载的版本，这里已经默认安装了php5.5.12，如下图-1
图-1注意下图-2中的两个特别文件：phpForApache.ini wampserver.conf
图-2下载PHP二进制包http://windows.php.net/download/
PHP目前提供PHP5.4、PHP5.5、PHP5.6版本，到上面的网址去下载**对应的**PHP二进制**Zip**包，]]></description><category></category></item><item><title><![CDATA[git merge error permission denied]]></title><link>https://blog.youkuaiyun.com/sshfl_csdn/article/details/46504631</link><guid>https://blog.youkuaiyun.com/sshfl_csdn/article/details/46504631</guid><author>sshfl_csdn</author><pubDate>Mon, 15 Jun 2015 15:51:21 +0800</pubDate><description><![CDATA[错误描述Windows下使用git，在git命令行中执行git merge**有时**会出现类似如下的错误
Updating fdbf523...a5d4fa3
error: unable to create file xxx.php (Permissin denied)解决方案我目前比较好的解决方案，
既然已经错了，将错就错，做版本提交，
然后在**版本回退**
git reset --hard]]></description><category></category></item><item><title><![CDATA[Sublime Text 3 添加插入当前时间]]></title><link>https://blog.youkuaiyun.com/sshfl_csdn/article/details/46415551</link><guid>https://blog.youkuaiyun.com/sshfl_csdn/article/details/46415551</guid><author>sshfl_csdn</author><pubDate>Mon, 08 Jun 2015 17:27:19 +0800</pubDate><description><![CDATA[sublime text 3 插件创建插件Tools → New Plugin...
插入如下代码，并将文件保存为
Sublime Text 3\Data\Packages\User\addCurrentTime.py
import datetime
import sublime_plugin
class AddCurrentTimeCommand(sublime_plugin.TextComman]]></description><category></category></item><item><title><![CDATA[一些平时遇到的英语单词摘录]]></title><link>https://blog.youkuaiyun.com/sshfl_csdn/article/details/46387461</link><guid>https://blog.youkuaiyun.com/sshfl_csdn/article/details/46387461</guid><author>sshfl_csdn</author><pubDate>Sat, 06 Jun 2015 13:06:10 +0800</pubDate><description><![CDATA[英语单词-摘录本人是一枚程序员，哈哈，下面是我在平时工作或学习时，遇到的一些英语单词。然后将其记录下来，以备不时之需。
Aaccess 入口，出口，接近，进入
alternative 替代的，备选的 (PSR-4
anonymous 匿名的，无名的
approximately adv. 近似地，大约
architecture 体系结构
asc 按升序排列<mysql 默认值
authenticate]]></description><category></category></item><item><title><![CDATA[laravel 4 after filter 添加返回参数到原来的返回值中]]></title><link>https://blog.youkuaiyun.com/sshfl_csdn/article/details/46276535</link><guid>https://blog.youkuaiyun.com/sshfl_csdn/article/details/46276535</guid><author>sshfl_csdn</author><pubDate>Sat, 30 May 2015 17:38:37 +0800</pubDate><description><![CDATA[laravel 4 after filter需求一在用户完成登录后，增加判断用户的登录情况，即判断用户是否为连续登陆以及若是连续登录的话，还需判断连续登录的天数；
因此，通过laravel的after filter，好不容易完成了需求。
可是，你懂得，新的需求来了......哈哈
需求二前台工程师和你沟通说还要额外返回一个字段（用来判断用户是否为今天第一次登陆），解决方法倒不难，只要额外返回一个用来]]></description><category></category></item><item><title><![CDATA[php 优化查询 foreach]]></title><link>https://blog.youkuaiyun.com/sshfl_csdn/article/details/45742807</link><guid>https://blog.youkuaiyun.com/sshfl_csdn/article/details/45742807</guid><author>sshfl_csdn</author><pubDate>Fri, 15 May 2015 12:06:49 +0800</pubDate><description><![CDATA[php代码优化代码示例使用了laravel的操作数据库api,eloquent orm
foreach里面执行两次sql查询foreach ($datas as $_v) {
    // todo 在foreach中查询了两次 **time**: 290 ms(postman)
    $uid = $_v->uid;
    $_v->user_name   = User::find($uid)]]></description><category></category></item><item><title><![CDATA[Windows下安装cmder替代cmd 推荐]]></title><link>https://blog.youkuaiyun.com/sshfl_csdn/article/details/45642271</link><guid>https://blog.youkuaiyun.com/sshfl_csdn/article/details/45642271</guid><author>sshfl_csdn</author><pubDate>Mon, 11 May 2015 11:36:47 +0800</pubDate><description><![CDATA[下载cmder解压并运行访问Cmder->下载(download)但是在使用过程中可能会遇到一些问题：
1、中文显示乱码把以下几行代码添加到config/aliases文件末尾即可：
l=ls --show-control-chars 
la=ls -aF --show-control-chars 
ll=ls -alF --show-control-chars
ls=ls --show-contr]]></description><category></category></item><item><title><![CDATA[windows 端口占用 命令行]]></title><link>https://blog.youkuaiyun.com/sshfl_csdn/article/details/45587787</link><guid>https://blog.youkuaiyun.com/sshfl_csdn/article/details/45587787</guid><author>sshfl_csdn</author><pubDate>Fri, 08 May 2015 23:44:27 +0800</pubDate><description><![CDATA[以9050端口为例，以下数字仅供参考查看“所有端口”占用情况C:\Users\sshfl>netstat -ano
协议     本地地址     外部地址     状态    PID
TCP  127.0.0.1:1434 0.0.0.0:0 LISTENING 3236
查看“指定端口”占用情况C:\Users\sshfl>netstat -aon|findstr "9050"
查看PID对应的]]></description><category></category></item></channel></rss>