2017年4月22日
摘要: 对TCP/IP、UDP、Socket编程这些词你不会很陌生吧?随着网络技术的发展,这些词充斥着我们的耳朵。那么我想问: 1.什么是TCP/IP、UDP?2.Socket在哪里呢?3.Socket是什么呢?4.你会使用它们吗? 什么是TCP/IP、UDP? TCP/IP(Transmission Co 阅读全文
posted @ 2017-04-22 11:36 上善若水-随 阅读(239) 评论(0) 推荐(0) 编辑
  2017年4月20日
摘要: 1.下载Memcached Windows服务端程序.(memcached >= 1.4.5 版本安装32 32位系统 1.4.5版本:http://static.runoob.com/download/memcached-1.4.5-x86.zip) 注意:你需要使用真实的路径替代 c:\memc 阅读全文
posted @ 2017-04-20 16:04 上善若水-随 阅读(1066) 评论(0) 推荐(0) 编辑
  2017年4月16日
摘要: netstat -anp|grep 80 阅读全文
posted @ 2017-04-16 12:57 上善若水-随 阅读(150) 评论(0) 推荐(0) 编辑
  2017年4月15日
摘要: 1 //PHP创建access_token.json文件,将access_token 和 生成时间expires 保存在其中, 2 //{"access_token":"xxxx","expires":1478799661} 3 function getToken(){ 4 $appid='*'; 5 $appsecret='**'; 6 $file = fi... 阅读全文
posted @ 2017-04-15 16:29 上善若水-随 阅读(4742) 评论(0) 推荐(0) 编辑
  2017年4月3日
摘要: //定义编码 header( 'Content-Type:text/html;charset=utf-8 '); //Atom header('Content-type: application/atom+xml'); //CSS header('Content-type: text/css'); //Javascript header('Co... 阅读全文
posted @ 2017-04-03 19:27 上善若水-随 阅读(511) 评论(0) 推荐(0) 编辑
  2017年4月1日
摘要: 1.使用phpinfo()函数查看PHP的版本信息,这会决定扩展文件版本 2.选择http://windows.php.net/downloads/pecl/snaps/redis/2.2.5/ http://windows.php.net/downloads/pecl/releases/igbin 阅读全文
posted @ 2017-04-01 16:30 上善若水-随 阅读(217) 评论(0) 推荐(0) 编辑
  2017年3月30日
该文被密码保护。 阅读全文
posted @ 2017-03-30 17:42 上善若水-随 阅读(4) 评论(0) 推荐(0) 编辑
  2017年3月27日
摘要: 搭建环境 前提是在win7中开启telnet服务 开启方法请参考:http://jingyan.baidu.com/article/870c6fc3cd6fa9b03fe4bee4.html 打开Telnet服务 模拟get请求,访问百度页面 1.打开命令提示符输入:telnet www.baidu 阅读全文
posted @ 2017-03-27 16:59 上善若水-随 阅读(20469) 评论(0) 推荐(0) 编辑
摘要: PHP 的 HTTP 认证机制仅在 PHP 以 Apache 模块方式运行时才有效,因此该功能不适用于 CGI 版本。在 Apache 模块的 PHP 脚本中,可以用 header()函数来向客户端浏览器发送"Authentication Required"信息,使其弹出一个用户名/密码输入窗口。当 阅读全文
posted @ 2017-03-27 10:51 上善若水-随 阅读(1510) 评论(0) 推荐(0) 编辑
  2017年3月25日
摘要: sublime 3快捷键: (1) Ctrl+O(Command+O)可以实现头文件和源文件之间的快速切换 (2) 双击可选中光标所在单词,三击可选中光标所在行(等同于Ctrl+L(Command+L)); (3) Ctrl+Shift+T可以打开之前关闭的tab页,这点同chrome是一样的 (4 阅读全文
posted @ 2017-03-25 18:11 上善若水-随 阅读(495) 评论(0) 推荐(0) 编辑