2014年11月3日

HTTPS(SSL)详解以及PHP调用方法

摘要: HTTPS 详解1. 两个加密秘钥的概念(1) 对称加密 即加密的秘钥和解密的秘钥一样(2) 非对称加密 即加密的秘钥和解密的秘钥不一样, 分别称为公钥 和 私钥, 公钥完全公开 私钥解密者自己拿着解密用。注: 所有的签字 认证 等机制 无非是 对称秘钥和非对称秘钥的组合拳。(3) 证书CA认证中心... 阅读全文

posted @ 2014-11-03 15:38 出发的兰彻 阅读(1953) 评论(0) 推荐(0) 编辑

2014年10月30日

php 错误 Strict Standards: PHP Strict Standards: Declaration of .... should be compatible with that of 解决办法

摘要: 错误原因:这是由于 php 5.3版本后。要求继承类必须在父类之后定义。否则就会出现Strict Standards: PHP Strict Standards: Declaration of .... should be compatible with that of .... 的错误提示。也就是... 阅读全文

posted @ 2014-10-30 13:00 出发的兰彻 阅读(749) 评论(0) 推荐(0) 编辑

nginx 偶发 403原因

摘要: 观察errorlog 日志 是否存在类似错误[error] 12788#0: *322 connection is denied by policyframe[return code:8],观察是否开启nginx policy_frame , 配置项policy_frame on关闭配置文件 pol... 阅读全文

posted @ 2014-10-30 10:32 出发的兰彻 阅读(1033) 评论(0) 推荐(0) 编辑

2014年8月5日

一个PHP数组能占多大内存

摘要: 最近用PHP读取一个大文件把相关数据存放到数组中,之后处理并输出, 读取过程中发现占用内存很大, 于是很好奇这个问题。简单的写一个代码'hello world1', 'testb'=>'hello world2', );$m3 = memory_get_usage();echo ... 阅读全文

posted @ 2014-08-05 14:57 出发的兰彻 阅读(1934) 评论(0) 推荐(0) 编辑

2014年7月22日

如何使用投影看着备注分享自己的PPT

摘要: 1. 设置多屏幕一般你的笔记本就是1, 投影是22. 设置幻灯片的放映方式 设置幻灯片显示于另外一个监视器 并勾选显示演示者视图3. 点击放映就会出现 左上角是ppt本身, 右上角是备注, 下面是幻灯片列表的经典视图。 阅读全文

posted @ 2014-07-22 18:45 出发的兰彻 阅读(1880) 评论(0) 推荐(0) 编辑

2014年7月10日

PHP安装libevent扩展

摘要: 1. 下载扩展官方地址http://pecl.php.net/package/libevent请根据自己的PHP脚本选择相应版本如wget http://pecl.php.net/get/libevent-0.0.4.tgz2. 下载 wget http://pecl.php.net/get/... 阅读全文

posted @ 2014-07-10 18:00 出发的兰彻 阅读(4463) 评论(0) 推荐(0) 编辑

2014年7月9日

PHP使用mail()函数发送邮件流程以及注意事项

摘要: 1. 配置 php.ini sendmail_path = /usr/sbin/sendmail -f yourname@sth.com -t -i2. 使用函数 mail($to, $subject, $content, $headers);3. title乱码如何解决修改 $subject = ... 阅读全文

posted @ 2014-07-09 21:41 出发的兰彻 阅读(497) 评论(0) 推荐(0) 编辑

2014年6月27日

使用git提交github代码

摘要: 新的项目的提交touch README.mdgit initgit add README.mdgit commit -m "first commit"git remote add origin https://github.com/sailrancho/test.gitgit push -u ori... 阅读全文

posted @ 2014-06-27 14:54 出发的兰彻 阅读(194) 评论(0) 推荐(0) 编辑

PHP 文件迭代器

摘要: 使用了SPL的 迭代器, 可以直接对打开的文件进行foreach读取, 类的构造如下class fileIterator implements Iterator{ private $fp; private $line_num; private $line; public... 阅读全文

posted @ 2014-06-27 12:07 出发的兰彻 阅读(532) 评论(0) 推荐(0) 编辑

2014年6月10日

linux 安装phpMyAdmin

摘要: 1. 首先安装 php mysql nginx2. 下载phpMyadminwget http://sourceforge.net/projects/phpmyadmin/files/phpMyAdmin/4.0.10/phpMyAdmin-4.0.10-all-languages.tar.gzta... 阅读全文

posted @ 2014-06-10 18:02 出发的兰彻 阅读(439) 评论(0) 推荐(0) 编辑

导航